For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2007 > MIME::EncWords charset param









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MIME::EncWords charset param
Mags

2007-02-20, 6:58 pm

hi,

I'm having difficulty getting MIME::EncWords to ouput an encoded,
single-byte value; it always seems to ouput the double-byte (unicode)
value rather than the iso value, for example :

$encoded = encode_mimewords ( "á", Encoding=>"Q", Charset=>"ISO-8859-1");

$encoded has value : =?ISO-8859-1?Q?=C3=A1?=

.... shouldn't this be : =?ISO-8859-1?Q?=E1?=
?


If instead :
$encoded = encode_mimewords ( "á", Encoding=>"Q", Charset=>"UTF-8");

....I would then expect $encoded to have the value =?UTF-8?Q?=C3=A1?=
(which it does).


Am i mis-interpreting something?
I've just downloaded a lot of the pre-requisite MIME modules, so they
should be the most recent versions.

tia,
mags.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com