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

Spaces are converted to invalid characters #2

Closed
refi64 opened this issue Jul 15, 2015 · 2 comments
Closed

Spaces are converted to invalid characters #2

refi64 opened this issue Jul 15, 2015 · 2 comments

Comments

@refi64
Copy link
Owner

refi64 commented Jul 15, 2015

http://kirbyfan64.github.io/rs/index.html?script=%C2%A0&input=%C2%A0%2F%40

The output is:

ᅡᅠᅡᅠ/@

While it should be:

@

Also:

http://kirbyfan64.github.io/rs/index.html?script=%C2%A0%2F%40&input=%C2%A0

In debug mode, it outputs the same box characters.

@refi64
Copy link
Owner Author

refi64 commented Jul 15, 2015

Actually, I wonder if this is a PyPy.js bug. Code on my side seems to be OK. The data is being sent in from PyPy.js with those weird escape sequences.

@refi64 refi64 closed this as completed in 1a0d838 Aug 19, 2015
@refi64
Copy link
Owner Author

refi64 commented Aug 19, 2015

This bug is worth an explanation! The spaces in the input box were converted to non-breaking spaces by jQuery, which completely killed the regex matcher. It seems the monospace font doesn't have support for the non-breaking spaces, so they came up as empty boxes.

I. Hate. Unicode.

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

No branches or pull requests

1 participant