Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上传文件返回的rul里面 分隔符变为了% #147

Open
jafferCc opened this issue Mar 13, 2024 · 1 comment
Open

上传文件返回的rul里面 分隔符变为了% #147

jafferCc opened this issue Mar 13, 2024 · 1 comment

Comments

@jafferCc
Copy link

jafferCc commented Mar 13, 2024

No description provided.

@liqiuqiu111
Copy link

liqiuqiu111 commented Mar 18, 2024

https://support.huaweicloud.com/ugobs-obs/obs_41_0015.html
对保留字符的百分号编码
如果一个保留字符在URI中具有特殊含义(称作“reserved purpose”), 且URI中必须使用该字符用于其它目的,那么该字符必须百分号编码。OBS服务对非ASCII字符编码必须采用UTF-8编码,否则最终上传至OBS的对象名可能与预期不符。例如,保留字符“/”,如果将其用作URI的路径成分的分隔符, 则是具有特殊含义的保留字符(在OBS中用来分割桶名和对象名)。如果该字符需要出现在URI一个路径成分的内部, 则需要使用三个字符“%2F”或“%2f”代替原本的“/”。保留字符 " ",需要将其编码为“%20”,例如字符串“abc d”,应该编码为“abc%20d”。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants