GithubHelp home page GithubHelp logo

Comments (5)

fboldog avatar fboldog commented on June 12, 2024

Could you provide a problematic example? I saw what is the problem, but a real world example, always better. ;)

from klaxon.

ssuukk avatar ssuukk commented on June 12, 2024

Surely, but not earlier than Monday evening. If I can find any API that doesn't require my private key... BTW - thanks for klaxon, it helps keep my code neat ;)

from klaxon.

PaperTsar avatar PaperTsar commented on June 12, 2024

The issue still persists. "ú" and "\u00FA" should produce the same output when parsed. The former gets mangled. (Great API btw:)

from klaxon.

cbeust avatar cbeust commented on June 12, 2024

I would really like to see a concrete example where Klaxon fails, then I can add it as a regression test and fix it.

Thanks!

from klaxon.

VladRassokhin avatar VladRassokhin commented on June 12, 2024

Problem lies in Lexer#nextChar as it assumes that all chars are single-byte, which is false for example for é (part of your name, Cédric) as that symbol encoded using two bytes C3 and A9.
Simple test to reproduce is to add next method to TestRFC7159 class.

    fun unicodeUnescaped() {
        jsonEquals("{\"a\":\"é\"}", "{\"a\":\"é\"}")
    }

from klaxon.

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.