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

Reading file with '‹' character. #1

Open
Clowting opened this issue Apr 17, 2018 · 2 comments
Open

Reading file with '‹' character. #1

Clowting opened this issue Apr 17, 2018 · 2 comments

Comments

@Clowting
Copy link

When trying to read a file with the '‹' character it converts it to something like:

On Windows: (a new line, followed by) ï¿ ½"
On Mac: �

Any idea if I'm doing something wrong? I tried utf-8, ascii, ucs2 and binary encoding.

@dumbmatter
Copy link
Owner

dumbmatter commented Apr 17, 2018

If you post an example file I can try to take a look at it, but in general weird characters may behave strangely. https://github.com/epam/parso or something based on that will probably work better, unless the fact that this is in JS is important to you.

@Clowting
Copy link
Author

Ah, I see. I am kind off limited to a javascript solution at the moment. I included a few example files with characters that break.
SAS files.zip

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

No branches or pull requests

2 participants