[rt-users] Output encoding, Web vs CLI

Emmanuel Lacour elacour at easter-eggs.com
Fri Apr 3 10:25:30 EDT 2009


On Fri, Apr 03, 2009 at 10:09:48AM -0400, Jesse Vincent wrote:
> 
> 
> 
> I have a sneaking suspicion this is related to Locale::Maketext::Lexicon
> being "smart"
> 
> What have you set your environment/locale to in that shell?
> Can you reduce this to a test we can drop into the RT test suite?


$ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=fr_FR.UTF-8
$ ./test.pl > out
$ file out
out: ISO-8859 text
$


I get proper utf-8 if I do print Encode::encode('utf-8', $data)




More information about the rt-users mailing list