NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
i18n support? (Score:2)
Anyways, I was looking for a place whe
Re:i18n support? (Score:2)
As far as SpamAssassin (and other similar projects I work on) is concerned, one thing we need is access to both the parsed and the unparsed headers and body. Because spam (and virus) detection requires that sort of thing.
Re:i18n support? (Score:1)
So: decoding is simple to integrate, encoding is much harder. Next to the existing folded() and unfolded() version of the field's data, you will also see a separate decoded() method.So you will be able to get the data from the field in any way you like.
Reply to This
Parent
Re:i18n support? (Score:2)
I don't understand what you mean by this. The email specifies what encoding you wish to use, and all you have to do is decode to unicode (utf-8 in perl terms). Or if you want to write an email, you can simply specify it as a recognised encoding format. If the encoding format isn't recognised there's little you can do. It's also pretty easy to determine if you should encode something. If it's got ch
Re:i18n support? (Score:1)
to a unicode string, but it is quite hard to do the reverse, where the type of encoding is autogically chosen, but also configurable, as well as the character-set which is used.
For your own program, it is easy to implement, but a general CPAN module has quite some extra needs... certainly i