Hi, Not all character sets are fully compatible with XML. You may want to encode your message in base64 before you send it to the Email Migration Service. Please refer the rfc822 encode attribute documentation for sending base64 encoded messages : http://code.google.com/apis/apps/email_migration/developers_guide_protocol.html#SampleMessage
I am not very knowledgeable on Perl libraries but this seems like a good base64 reference: http://search.cpan.org/~gaas/MIME-Base64-Perl-1.00/lib/MIME/Base64/Perl.pm -Anirudh On Jan 23, 1:59 am, Rex Roof <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
