Duplicate :
|
|
Relates :
|
tim.foster@Ireland 1999-02-05 This is a bug that tracks bug id 4194488 This codeset is widely used in russia and is part of the solaris 7 russian supplement, and is now part of base Solaris 8. It should be supported on any vm that's shipped with solaris. I think this codeset is essentially cp1251, though there does not seem to be a table that converts the call to nl_langinfo(CODESET) result (of ansi-1251) to Cp1251. timf@cheers[11] setenv CLASSPATH /home/timf/projects/java/locale timf@cheers[12] ./java testcharconvert Testing character conversions.. - using default encoding : ansi-1251 A conversion using the encoding : ansi-1251 , has caused an exception java.io.UnsupportedEncodingException: ansi-1251 character value failed on : 20 timf@cheers[13] locale LANG= LC_CTYPE="ru.ansi1251" LC_NUMERIC="ru.ansi1251" LC_TIME="ru.ansi1251" LC_COLLATE="ru.ansi1251" LC_MONETARY="ru.ansi1251" LC_MESSAGES="ru.ansi1251" LC_ALL=ru.ansi1251 timf@cheers[14] ./java -version ./java version "1.2" Solaris VM (build Solaris_JDK_1.2_01_dev06_fcsV, native threads, sunwjit) timf@cheers[15] ^R timf@cheers[15] ./java -fullversion java full version "Solaris_JDK_1.2_01_dev06_fcsV" I believe this has been fixed by java software in their VM.