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

Re: [MacPerl-Modules] XML::Parser: support for native Mac (Roman) character set



On Mon, 6 Dec 1999, Bart Lateur wrote:

> On Sun, 5 Dec 1999 10:38:08 -0400 (AST), Arved Sandstrom wrote:
> 
> But that brings up another problem. It looks like the text it outputs is
> always UTF-8 (this is sort of a compressed Unicode, Ascii + multibyte
> for special characters)? I can't find a way to turn this back to
> Macintosh text? Not with the plain XML::Parser, at least.
> 
> That looks odd. The character encodings are provided for this module,
> but they look like being used ONLY in one way: converting to Unicode
> (and from there to UTF-8).
> 
> I can't find a UTF-8 decoding module at CPAN.
> 
> Besides, having to build yet another decoder to convert UTF-8 back to
> Macintosh text, looks like double work to me. At least, it should try to
> reuse the encoding files from XML::Parser.
> 
Yeah, XML::Parser converts to UTF-8. As I say, I haven't messed around
with this, but it strikes me that your best option for conversion in the
other direction is to look at the Unicode modules. I've built 2 of them
(Unicode-String and Unicode-Map) and you can get 'em through
http://pudge.net/mmp/.

Interesting to hear what you find out.

Arved



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org