Open GoogleCodeExporter opened 8 years ago
Unit test attached
Original comment by icw...@gmail.com
on 13 Jul 2011 at 4:41
Attachments:
Experienced the same issue. Changing the buffersize for reading the inputstream
from 4096 to 128 solved the problem. The error occurred with buffer sizes of
253 and above.
Original comment by eman0...@gmail.com
on 28 Feb 2012 at 9:39
[deleted comment]
Changing the buffersize did not solve the issue on real files.
The workaround I am currently using is to detect if one or more degree
characters (°) are present in the byte stream(buf[i] == (byte) 0xB0). If true
and if the detector returns "GB18030", I use "WINDOWS-1252" instead.
This gives good results (as long as you do not have to detect GB18030 encoded
files)
Original comment by juliende...@gmail.com
on 29 Jan 2015 at 10:20
Original issue reported on code.google.com by
icw...@gmail.com
on 13 Jul 2011 at 4:34