in reply to Encode text to XML €

Hi,

Your XML parser is expecting UTF-8 by default, and that's exactly what you are using here, so why would you change that? Otherwise there is Text::Iconv which can convert almost any character encoding into what you need.

Using the euro char has its own particular weirdness in connection with XML as explained here: Euro-XML (xml.com). This has more to do with abusive use of control characters on some widely used platforms than anything else, however.

--
Cheers, Joe

Replies are listed 'Best First'.
Re: Re: Encode text to XML €
by Jaap (Curate) on Sep 27, 2002 at 15:34 UTC
    I parse the XML myself.
    The problem is that if in XML characters like chr(0x12) are not allowed. so i convert them. But i am unable to convert the longer cht(0x1234) to ሴ.

    I am reading the xml.com article. I hope it helps.