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

Don't work with UTF-8 #64

Open
signmotion opened this issue Dec 13, 2011 · 4 comments
Open

Don't work with UTF-8 #64

signmotion opened this issue Dec 13, 2011 · 4 comments

Comments

@signmotion
Copy link

File aka
{
"name": "Блок стен 4x4"
}

don't parse with command line
json_reformat.exe -u < filename.json

"parse error: client cancelled parse via callback ..."

@falconindy
Copy link

Works for me, using yajl 2.0.3. Is there a byte order mark in a file that's throwing off yajl?

@signmotion
Copy link
Author

Mark in a first '{'.
I found problem. The json-file created by Notepad++ in Windows Explorer. By default N++ use BOM in the text file. Solution: convert the file in UTF-8 without BOM (see menu).
Test files for yajl > http://www.mediafire.com/?9eahbxz9kx7mkk4

Thanks for your work!

@josephholsten
Copy link

Should this issue be renamed "Doesn't work with UTF-8-BOM"? While it is acceptable for legacy applications to act strangely with the BOM, modern software that is intended to work with UTF-8 needs to play nice.

@robdaemon
Copy link

Ran into this issue earlier and managed to work around it, but it's problematic that the JSON I was using was parseable in other parsers (namely the Ruby JSON gem) but not in Yajl.

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

4 participants