I'm writing code in Perl to migrate our sendmail-based inboxes to
Google Apps, using the Google Apps Email API.

I'm using the XML::Writer perl module to create the XML to post to the
API.

Everything seems to be working smoothly, except that every once in a
while I hit a character in an email that causes XML::Writer an
exception:

Code point \u001B is not a valid character in XML
Code point \u0014 is not a valid character in XML

Can anyone suggest a general method for dealing with these?
Or should I ignore XML::Writer entirely and deal with these some other
way?

I've tried  Unicode::String::utf8() and I've tried
XML::Entities::numify('all', $message).

I suppose I am lacking a base understanding of how to deal with
characters like this in XML.

Any help would be appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to