R
rtl
I am retrieving an email with XML content. I strip off the email
headings and save only the XML portion to a file. Subsequently I
parse through the XML using XML::Simple.
Most times the XML parses fine, but there are times when there is some
extra encoding, such that all ='s (equal signs) are followed by '3D'.
This seems to happen when certain characters such as TM or (R) or (c)
are included in some of the data.
I do not know what modules may be helpful so I can successfully decode
the XML correctly. I have tried mime::quotedprint which successfully
fixes most of the encoding, but there are times when characters such
as TM come in as =E2=84=A2 but is not translated as a single character
but as three separate characters.
Any help would be great. I am running Perl 5.6.1 on Win2k. I am
swimming in modules and terms including MIME, base64 and UTF-8 -- but
to no avail.
Thank you.
headings and save only the XML portion to a file. Subsequently I
parse through the XML using XML::Simple.
Most times the XML parses fine, but there are times when there is some
extra encoding, such that all ='s (equal signs) are followed by '3D'.
This seems to happen when certain characters such as TM or (R) or (c)
are included in some of the data.
I do not know what modules may be helpful so I can successfully decode
the XML correctly. I have tried mime::quotedprint which successfully
fixes most of the encoding, but there are times when characters such
as TM come in as =E2=84=A2 but is not translated as a single character
but as three separate characters.
Any help would be great. I am running Perl 5.6.1 on Win2k. I am
swimming in modules and terms including MIME, base64 and UTF-8 -- but
to no avail.
Thank you.