Coder Social home page Coder Social logo

Don't work with UTF-8 about yajl HOT 4 OPEN

lloyd avatar lloyd commented on June 25, 2024
Don't work with UTF-8

from yajl.

Comments (4)

falconindy avatar falconindy commented on June 25, 2024

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

from yajl.

signmotion avatar signmotion commented on June 25, 2024

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!

from yajl.

josephholsten avatar josephholsten commented on June 25, 2024

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.

from yajl.

robdaemon avatar robdaemon commented on June 25, 2024

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.

from yajl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.