Rui,
Interesting comment - I found a curiosity with the conversion from UTF16 to UTF8 in that :
a. It didn't matter whether I issued a byteswap (to exchange between little- and big-endian UTF-16) or not, it still produced the same answer for a particular file.
b. One file worked fine, but for another it converted the Chinese data to different Chinese data. Again see 'a'..
Both before and after for each case were viewed in Notepad on Windows 2000 using the Arial Unicode MS font.
Regards,
Tim
PS: Does anyone know of - even an odd looking - Fixed pitch Unicode font including Western European, CJK, Cyrillic and Greek glyphs (ie: most Left to Right data) ? It's not for an end-user, it's for techies like myself, so it doesn't need to be brilliant, just more distinctive than a set of squares or blocks !
Rui Ribeiro <[EMAIL PROTECTED]> wrote:
Hi,
I saw your reference to the use of Unicode::String. Excuse me for asking, but does it work? We've tried to several funtions from it
(utf16, ucs2,...) but the only one that seems to work is utf8?
Thanks.
Regards.
Rui Ribeiro
> -----Original Message-----
> From: Philip Newton [mailto:[EMAIL PROTECTED]]
> Sent: sexta-feira, 16 de Novembro de 2001 19:41
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: UTF-16 -> UTF-8
>
>
> On Fri, 16 Nov 2001 17:41:52 +0000 (GMT), in perl.unicode you wrote:
>
> > I'm wanting to convert a file from UTF16 into UTF8. I believe I've
> > identified the tools to do it and all but installed them, apart
> > from Unicode::Map8 (v0.10).
> >
> > Can anyone help me with the build errors (below) or advise me of
> > alternative modules I could use on Windows 2000 ?
>
> I think I would probably have used Unicode::String.
>
> Which version of Perl are you using? If you are using ActiveState's
> ActivePerl distribution (which is likely, since it's the most common
> Perl distribution on Windows), then you can install precompiled versions
> of many modules with 'ppm' -- especially if you're running a build 6xx
> (Perl version 5.6.x). Try 'ppm install Unicode-String', or 'ppm install
> Unicode-Map8' if you want that.
>
> Cheers,
> Philip
Do You Yahoo!?
Get personalised at My Yahoo!.