Comments (8)
使用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.
Associated NPM 🚚 release is : 1.0.6 .
@JjiaoLiu @tonylkc : Please, let me know if it is fixed from your side .
from react-csv.
Did you want to render Chinese headers ? I mean : key, name, age, address .
from react-csv.
@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.
I can output header in English,no wrong.but I also need to output content in chinese;
from react-csv.
@jiangbing9293 :
شكرا لك على هذه الإشارة اللطيفة .
from react-csv.
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.
so cool!
from react-csv.
Related Issues (20)
- Start download while data is still being fetched from API calls HOT 1
- How to get it to ignore commas in strings within an array
- how to new line in cell HOT 1
- still getting UTF-8-BOM when setting prop uFEFF={false} HOT 1
- asyncOnClick = true together with onClick just doesnt work HOT 9
- is there any condition ' . ' must after ' " ' ? (need full stop after closing of double inverted comma)
- When the text contains double quotes, it will be divided into different columns. HOT 4
- File .csv not open directly with Excel HOT 1
- Data display vertically instead
- Module not found: Can't resolve 'prop-types' for NextJS project HOT 3
- Issue in async data
- [Object object] alert coming on CSVLink click
- The downloaded file is corrupted and cannot be open by microsoft excel
- Specify column order but not write headers
- Getting empty CSV files after upgrading to React 18 HOT 4
- Async Data HOT 3
- Detect the correct seperator
- Zip multiple files
- data attribute doesn't support function HOT 2
- I am unable to download a resume file when i click on download CV option in react? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-csv.