perl-unicode

Decode, byte codes ASCII & ISO-8859 and HTMLCREF or XMLCREF

2008-03-11 12:09:42

Having tried:

  $o = Encode::decode('ascii',      "abc \x80 \xFF", FB_HTMLCREF)
  $o = Encode::decode('ISO-8859-7', "abc \xFF",      FB_HTMLCREF)

  $o = Encode::decode('ascii',      "abc \x80 \xFF", FB_XMLCREF)
  $o = Encode::decode('ISO-8859-7', "abc \xFF",      FB_XMLCREF)

(0xFF is not a valid character value in ISO-8859-7.)

I find that they produce neither &128; and &255; nor € and &#xFF, but exactly the same as:

  $o = Encode::decode('ascii',      "abc \x80 \xFF", FB_PERLQQ)
  $o = Encode::decode('ISO-8859-7', "abc \xFF",      FB_PERLQQ)

namely \x80 and \xFF !

Almost as if there were a bug. Or have I missed the right piece of the documentation ?

--
Chris Hall               highwayman.com

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
  • Decode, byte codes ASCII & ISO-8859 and HTMLCREF or XMLCREF, Chris Hall <=