Re: trying to get unicode to work in perl
On Tuesday 07 August 2007 23:16, Andrei Popescu wrote:
> On Tue, Aug 07, 2007 at 03:01:04PM -0700, tom arnall wrote:
> > I'm trying to get unicode to work in perl. When I do the 'textbook'
> > example:
> >
> > kloro@debian:~$ perl -e'binmode(STDOUT, ":utf8"); print chr(0x263a)'
> >
> > I get garbage, not a smiley face, i.e.:
> >
> > âº
> >
> > My environment is:
>
> ...
>
> > LC_ALL=en_US
>
> ...
>
> > LANG=EN_US.UTF8
>
> ...
>
> > LANGUAGE=en_US.UTF-8
>
> Did you set LC_ALL? It is not set by default (at least not on my
> system). What is the output of locale (and why is your kmail sending
> ISO-8852-1 mails?)
>
> Regards,
> Andrei
'env' gives:
kloro@debian:~$ env
...
LC_ALL=en_US
...
LANG=en_US.UTF-8
...
LANGUAGE=en_US
...
does this not give what LC_ALL is set to?
'locale' gives:
kloro@debian:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US
what are 'ISO-8852-1 mails'?
i appreciate your help.
tom arnall
Reply to: