Code Monkey home page Code Monkey logo

Comments (8)

jiangbing9293 avatar jiangbing9293 commented on May 19, 2024 2

使用BOM的方式解决,在数据开始添加 \uFEFF。
修改core.js
encodeURI('data:text/csv;charset=utf-8,\uFEFF' + toCSV(data, headers, separator))
encodeURI(data:text/csv;charset=utf-8,\uFEFF${toCSV(data, headers, separator)})

from react-csv.

abdennour avatar abdennour commented on May 19, 2024 1

Associated NPM 🚚 release is : 1.0.6 .


@JjiaoLiu @tonylkc : Please, let me know if it is fixed from your side .

from react-csv.

abdennour avatar abdennour commented on May 19, 2024

Did you want to render Chinese headers ? I mean : key, name, age, address .

from react-csv.

tonylkc avatar tonylkc commented on May 19, 2024

@abdennour Hi! I have the same problem that, both header and content have to output in Chinese. However the output is garbled now.

from react-csv.

JjiaoLiu avatar JjiaoLiu commented on May 19, 2024

I can output header in English,no wrong.but I also need to output content in chinese;
Uploading QQ截图20170405091635.png…

from react-csv.

abdennour avatar abdennour commented on May 19, 2024

@jiangbing9293 :
شكرا لك على هذه الإشارة اللطيفة .

from react-csv.

estmatic avatar estmatic commented on May 19, 2024

I think that \uFEFF character shouldn't have a comma after it. As it is, I get an extra blank heading, so the column headings and values don't match.

from react-csv.

JjiaoLiu avatar JjiaoLiu commented on May 19, 2024

so cool!

from react-csv.

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.