Finally got rid of a really annoying error in JSPWiki: With JDK 1.4, migration from ISO-8859-1 to UTF-8 in pages would not work, and there had been a couple of unit test cases for months that I could not get to run. But I did some serious reading and experimenting on the terribly underdocumented java.nio.charset.Charset class, and managed to mount a JDK 1.4 solution to the whole problem. It took a bit of headbanging to get the multi-JDK code running as well, but now all of our unit tests finally show green.
It's nice to learn new things. Even though it is far too late in the night.
(If you need a sample how that to use the 1.4 Charsets and decoders, see the com.ecyrd.jspwiki.~FileUtil14 class in JSPWiki 2.0.21 or onwards.)
Back to weblog
|"Main_blogentry_210103_1" last changed on 21-Jan-2003 01:47:39 EET by unknown.|
CommentsNo comments yet.