#63 Charset support

brian Sat 8 Apr 2006

I finally got the Fan charset IO to use the java.nio.charset APIs as a fallback. Ron Hitchens who wrote the O'Reilly book on Java NIO was very responsive and gave me some working code! So Fan should support all the available charsets available in Java. I still have my custom encoders/decoders for UTF-8, UTF-16, and ISO-8859-1. My custom charset encoder/decoders are twice as fast as using NIO, so I'm still going to keep them for the common cases. Character IO seems to work quite seamlessly with binary IO now in the Fan APIs - getting rid of that whole InputStream vs Reader mess is very nice.

Login or Signup to reply.