Giter VIP home page Giter VIP logo

Comments (7)

syoyo avatar syoyo commented on June 9, 2024 1

@pigLoveRabbit520 Confirmed its an issue of your Console codepage. You are using cp936(Simplified Chinese). It prints 组 as 缁. chcp 65001(UTF8) should print 组 as 组. So its not the issue of nlomann json.

from json.

nlohmann avatar nlohmann commented on June 9, 2024
image

I cannot reproduce this.

from json.

pigLoveRabbit520 avatar pigLoveRabbit520 commented on June 9, 2024

On Linux I also got the right answer. but I am using Windows and visual studio.
On windows I got the wrong answer.

from json.

nlohmann avatar nlohmann commented on June 9, 2024

Can you show the output of data.dump(-1, ' ', true)? This should show \u7ec4, but I want to be sure.

from json.

pigLoveRabbit520 avatar pigLoveRabbit520 commented on June 9, 2024

@syoyo I have changed the codepage to 65001, however, I got the wrong result
image

from json.

nlohmann avatar nlohmann commented on June 9, 2024

Please check my previous comment and post the output of dump

from json.

nlohmann avatar nlohmann commented on June 9, 2024

(And since I'm neither familiar with Chinese nor Windows - could there be an issue with the font?)

from json.

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.