[Templates] Plugins and Unicode confusion
Bernhard Graf
tt@augensalat.de
Fri, 17 Feb 2006 00:56:21 +0100
On Friday 17 February 2006 00:28, Tatsuhiko Miyagawa wrote:
> On 2/16/06, Bernhard Graf <tt@augensalat.de> wrote:
> > > Yeah, POSIX.
> >
> > Then why does this work:
> >
> > perl -MPOSIX -e 'print POSIX::strftime("%B",0,0,0,1,2,106), "\n";'
> > M=E4rz
>
> Because that's latin-1 string which is okay to print out to terminal,
> individually. Problem occurs when you concatinate latin-1 bytes and
> utf-8 bytes.
No. My terminal uses utf-8 too.See my first posting.
"M=E4rz" from within the utf-8 encoded template is printed OK, while M=E4rz=
=20
from T::P::Date is displayed broken: My utf-8 terminal thinks latin=20
chars "=E4r" (two bytes) is one utf-8 char.
> Maybe you could try de_DE.UTF-8 if your system has that locale.
~> echo $LANG
de_DE.UTF-8
=2D-=20
Bernhard Graf