Linux.org.ua LinuxOrgUa . Know . JavaAndKoi8U Розд╕ли на linux.org.ua:
Головний | «Локаль» | Ча Пи | Проекти | ТВ╕к╕ | П╕сочниця | Назад
Know . { Домашня | Прочитай мене | Зм╕ни | ╤ндекс | Пошук | Перейти до }

Проблема

Ява в╕д Сан не п╕дтриму╓ кодування КО╤8-У.

Розв'язок

1. General.

Here's the classes to support KOI8-U encoding in Java IO Stream classes. Patch for inclusion KOI8-U aliases for CharacterEncoding.java is also here. Files distributed under Public Domain.

2. Installation.

For JDK 1.3 and older: ByteToCharKOI8_U.class and CharToByteKOI8_U.class should be placed in archive $JAVA_HOME/jre/lib/i18n.jar into directory sun/io/, after that stream classes which do recoding would understand encoding "KOI8_U".

For JDK 1.4: these classes should go into $JAVA_HOME/jre/lib/charsets.jar

To support 'koi8-u' and 'koi8-ru' mime-types you have to extract CharacterEncoding.java from somewhere :-\ (it seems like Sun considered this class pretty private and didn't put it in src.jar archive), apply the patch CharacterEncoding.java.koi8-u.patch and compile. CharacterEncoding.class should be placed in archive $JAVA_HOME/jre/lib/rt.jar into directory sun/io/

You also may recompile *KOI8_U.java sources for your environment yourself, just dont' forget to include i18n.jar in your classpath.

3. Copyrights.

2001,2002 (c) Andriy Rysin <arysin@yahoo.com>

Web Form
Topic Classification: Public Supported
Operating System: Os Linux
Os Version:

Долучення: Д╕я: Розм╕р: Дата: Ким: Коментар:
0 java_koi8u.tgz д╕я 7296 01-жов-2002 15:50 Volodymyr Lisivka  

Тема JavaAndKoi8U . { Редагувати | Долучити | Посилання сюди | Для друку | Зм╕ни | r1.1 | Б╕льше }
Верс╕я r1.1 - 01-жов-2002 15:48 GMT - Volodymyr Lisivka

Copyright (c) 2002 by the contributing authors.
Вс╕ матер╕али на цьому сайт╕ ╓ власн╕стю ╖х автор╕в.
╤де╖, запити, проблеми щодо linux.org.ua? Над╕шл╕ть ваш╕ зауваження.