Problem with charset
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ivan_Bereznyakov
Posted On:   Sunday, July 15, 2001 04:59 AM

I should use as subject charset cyrillic charset koi8-r. It is supported by JDK but when I use it as follows: msg.setSubject("Smth in russian","KOI8_R"); msg.setContent("Smth in russ.", "text/plain; charset=KOI8_R"); The following problem occures: the following lines are in message header: Subject: =?KOI8_R?B?8tXT08vJyiDR2tnL?= Content-Type: text/plain; charset=KOI8_R But the majority of mail clients need not "KOI8-R" keyword, but "koi8-r". ("koi8-r" keyword isn't supported by JDK, but actually with encoding everyhing is OK, only mail client (E.g. Netscape Messenger) doesn'   More>>

I should use as subject charset cyrillic charset koi8-r. It is supported by JDK but when I use it as follows:


msg.setSubject("Smth in russian","KOI8_R");


msg.setContent("Smth in russ.", "text/plain; charset=KOI8_R");



The following problem occures: the following lines are in message header:

Subject: =?KOI8_R?B?8tXT08vJyiDR2tnL?=
Content-Type: text/plain; charset=KOI8_R



But the majority of mail clients need not "KOI8-R" keyword, but "koi8-r". ("koi8-r" keyword isn't supported by JDK, but actually with encoding everyhing is OK, only mail client (E.g. Netscape Messenger) doesn't understand the keyword).


Can it be solved?

   <<Less

Re: Problem with charset

Posted By:   Ivan_Boldyrev  
Posted On:   Monday, July 16, 2001 11:35 PM

JDK does understand koi8-r encoding, though it is not in list. JDK also understand "windows-1251", that is same as JDK's Cp1251, and so on.


Ivan, esli chto, pishi :)

About | Sitemap | Contact