Open GoogleCodeExporter opened 8 years ago
I have applied a minimal fix to the existing DaisyReader so at least the app
doesn't crash when the underlying SAX parser complains by raising an exception
when it is unable to process the ncc file for a book. The problem happens when
the SAX parser encounters Shift_JIS encoding in ncc.html (and probably also
happens for other files). I'll now investigate how to convince SAX to parse
Shift_JIS files on Android.
Original comment by julianharty
on 21 Oct 2012 at 8:56
Here are a bunch of links that might help me to resolve the problem when I have
the energy to work on a problem that's rare for users of this app AFAIK
http://stackoverflow.com/questions/11544713/utf-8-and-sjis-problems-on-android-a
nd-sockets
The following looks interesting
http://www.coderanch.com/t/450324/java/java/parsing-Japanese-SHIFT-JIS-Character
s
http://docs.oracle.com/javase/1.4.2/docs/api/java/nio/charset/CharsetDecoder.htm
l#decode(java.nio.ByteBuffer, java.nio.CharBuffer, boolean)
If in doubt perhaps we can replace the parser for a generic Java implementation?
http://xerces.apache.org/xerces2-j/faq-general.html
Original comment by julianharty
on 17 Jan 2013 at 7:51
Original issue reported on code.google.com by
julianharty
on 18 May 2012 at 2:41