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

feat: support for normalize chinese title #177

Merged
merged 1 commit into from
Dec 13, 2021
Merged

Conversation

vv13
Copy link
Contributor

@vv13 vv13 commented Dec 10, 2021

fix for issue #176 .

@normdoow
Copy link
Collaborator

This looks good. Makes sense. One thing I'm not sure about. Do Chinese characters work as urls in all browsers?

@vv13
Copy link
Contributor Author

vv13 commented Dec 10, 2021

This looks good. Makes sense. One thing I'm not sure about. Do Chinese characters work as urls in all browsers?

URL use RFC-1738, It basically support us-ascii sets, browsers will encode chinese charaters automatically, but there are differences between different browsers.

As far as i know, some old browser like IE also support encode character to gb2312.

for this PR, It simply make getCanonicalPageId can also get chinese readable title, and if we use it as URL, almost all browser will automatically convert it to URL character set.

@normdoow
Copy link
Collaborator

Looking good. thanks for this!

@normdoow normdoow merged commit f6a349d into NotionX:master Dec 13, 2021
@normdoow
Copy link
Collaborator

added to v4.11.4

chuyun pushed a commit to chuyun/react-notion-x that referenced this pull request Jul 13, 2023
feat: support for normalize chinese title
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

Successfully merging this pull request may close these issues.

None yet

2 participants