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

Solve the problem of non-ASCII characters in URL. Try to fix #1026 #1222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Solve the problem of non-ASCII characters in URL. Try to fix #1026 #1222

wants to merge 1 commit into from

Conversation

Bugjudger
Copy link

Try to fix #1026
Now URL supports non-ASCII code such as 中文한국어にほんごلغة عربية, which is based on utf8 coding.

If your path of URL contains % or other non-ASCII characters, please do not put the URL into the address bar in the browser directly.

Encode the URL with JavaScrip firstly, url_encode = encodeURI(URL) (JavaScrip language)

For example, encodeURI("http://localhost:4567/api/v1/permissionrole/permission/get%2Fabc中文한국어にほんごلغة عربية")

Then put the encodeURI into the address bar in the browser, you will get the correct answer.

Co-Authored-By: Chauncey-Xxy [email protected]

…L. Try to fix #1026

Try to fix #1026
Now URL supports non ASCII code, which is based on utf8 coding.

If your path of URL contain % or other non ASCII characters, please do not put the URL into address bar in browser directly.

Encode the URL with JavaScrip firstly, url_encode = encodeURI(URL)   (JavaScrip language)

For example, encodeURI("http://localhost:4567/api/v1/permissionrole/permission/get%2Fabc中文한국어にほんごلغة عربية")

Then put the encodeURI into the address bar in browser, you will get correct answer.

Co-Authored-By: Chauncey-Xxy <[email protected]>
@lepe lepe mentioned this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant