in reply to CJK / shiftjis
There's a syntax to open a file with multiple layers at once, but I don't remember the syntax off-hand. However, I don't think that will be correct for your problem. You write We need support for UTF8 and shiftjis. Do you mean your file contains both UTF8 and shiftjis data? I do not think any of the encoding layers is going to help you there - it's not smart enough to decide which bytes should be considered UTF-8, and which bytes shiftjis. You'll have to open it in binary mode, read in chunks all in the same encoding, and then do whatever you need to do.
|
|---|