Click here to Skip to main content
16,010,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSV Reader does not support Chinese.How to solve? :-D
Posted

1 solution

You are probably reading the text as bytes and assuming ASCII. You would need to use (or create) an Unicode cvs reader. You should specify how the text should be delivered (UTF8, UTF16, etc...) or create some sort of detection scheme for that like some editors try to do. The major part is that the Chinese signs do not all fit into the space between 128 and 255 and therefore an suitable encoding must be used (or probably is already used by the creators of the cvs file but not by the cvs reader you use)

Unicode info:
http://en.wikipedia.org/wiki/Unicode[^]

CVS Reader with Unicode support (version 2.0 up)
A Fast CSV Reader[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900