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

prevent non-english chars are encoded. Fixes #50 #100

Merged
merged 4 commits into from Jul 31, 2014
Merged

Conversation

Klap-in
Copy link
Collaborator

@Klap-in Klap-in commented Jul 13, 2014

  • firstly, the idfilter() is applied at ns and hns which are already cleaned by cleanID()
  • secondly, idfilter() is applied at id and hns of items that are page ids as existing at file system.
    For all these cases no encoding is required.

In dTree.prototype.addNode in indexmenu.js these id's are compared with the page id from $JSINFO
https://github.com/samuelet/indexmenu/blob/master/scripts/indexmenu.js#L205

I think it is not useful to keep the encoding (and solve this issue with decoding in dTree.prototype.add)

@samuelet can you review this and merge if it is fine?

Added some escaping as well.

@Klap-in
Copy link
Collaborator Author

Klap-in commented Jul 13, 2014

Maybe removing encoding will fix #68 as well..

@Klap-in
Copy link
Collaborator Author

Klap-in commented Jul 14, 2014

Would it be required to add an utf8-to-unicode conversion for the titles?

@Klap-in
Copy link
Collaborator Author

Klap-in commented Jul 14, 2014

Sofar my samples are displayed fine by the js tree. So i think additional conversion is not required.

samuelet added a commit that referenced this pull request Jul 31, 2014
prevent non-english chars are encoded. Fixes #50
@samuelet samuelet merged commit 3ad7f8e into master Jul 31, 2014
@Klap-in Klap-in deleted the encodedchars branch July 31, 2014 22:50
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