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

Fix unicode escapes #11

Closed
wants to merge 1 commit into from
Closed

Fix unicode escapes #11

wants to merge 1 commit into from

Commits on Jan 16, 2017

  1. Fix unicode escapes

    * Added Rust
    * Python's `\u` only takes 4 hex digits, `\U` takes 8 (and can thus encode astral characters)
    * Javascript, JSON and Java `\u` escape only takes 4 hex digits, for astral characters the surrogate pairs must be provided explicitly
    
    The Python, JS, JSON and Java snippets encoded U+1F59 {GREEK CAPITAL LETTER UPSILON WITH DASIA} followed by U+0036 {DIGIT SIX} rather than U+1F596 {RAISED HAND WITH PART BETWEEN MIDDLE AND RING FINGERS}.
    
    it is possible that other languages have the same issue. In fact I find it unlikely that C would have unicode escapes at all.
    masklinn authored Jan 16, 2017
    Configuration menu
    Copy the full SHA
    c4e4b05 View commit details
    Browse the repository at this point in the history