in reply to Database Problem
You might try Code Page 936 or "GBK" for your original data, not UTF-8.
Again, printing the raw data you got from the source database as hex, with no further processing, would help. You can also print the raw bytes to a file, and try loading that file into a text editor with different encodings specified and see which one makes sense. You need to read Chinese to know when it "makes sense" though. Does “脭忙脛戮鹿碌” look like the correct content? It's all valid simplified Chinese characters, but it doesn't appear to make any sense out of context.
|
---|