[OAI-implementers] Perl (5.005), utf-8 and special characters: is this a FAQ?

Marin Balgarensky marinb@gmx.net
Fri, 27 Dec 2002 00:09:31 +0100 (MET)


Hi all,

first of all, best wishes for the New Year!

Can anybody tell me how to handle special characters like ö
in the XML output? I thought Perl and the XML::Writer are doing
the conversion automatically, but for now I am getting the error:

An invalid XML character (Unicode: 0x1b2ea5) was found in the element
content of the document.

respectively in IE:

An Invalid character was found in text content. Line 15, Position 28 
 
     <dc:creator>Tanja A. B?l</dc:creator>
---------------------------^


The question mark is supposed to be the german o with the two dots...

If I encode those characters as HTML entities than they are not
interpreted correctly by the reading program because the ampersands
are escaped with &amp;.

For now I am using this aproach. It is not quite correct but at least
is readable without errors...

Any help very appreciated,
Marin

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!