Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Japanese in Perl on Linux





Brett Robson wrote:
>>>You don't need to base 64 encode Japanese if it is JIS (ISO2022), in
>>>fact you shouldn't. JIS is already 7 bit ascii. Just make sure it is
>>>encoded as JIS. If it isn't encoded in JIS, eg SJIS, using something
>>>like mkf to change it to JIS.
> 
> 
Brett Robson wrote:
> JIS is US-ASCII.

As far as transportation of the mail is concerned, that's true, it's all 
7-bit.  However, the MUA has to interpret the bytes as either JIS or 
US-ASCII.  The Content-Type header can be used to specify JIS for the 
body of the mail but the headers will be interpreted as US-ASCII unless 
specified otherwise.  The only way to specify the actual character 
encoding of the headers is to base64 encode them.

simon


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links