perl-unicode

Re: How to convert base64 string to utf-8

2004-02-06 05:30:06
ALexander N. Treyner <alex(_at_)treyner(_dot_)israel(_dot_)net> writes:
Hi John,
Your code works perfect.
But I found one strange thing.
For example I have next string:

      hello שלום hello world!!!!

that converted by the mail client to
      
      hello =?windows-1255?Q?=F9=EC=E5=ED_hello_world!!!!?=

After converting it by code you wrote into utf-8, the "_" is still 
present between second "hello" and "world".
Is it right behavior?

No - '_' is an encoding of '0x20' in the codeset, for ASCII based 
codesets that is space.


Thx,
Alex.

<Prev in Thread] Current Thread [Next in Thread>