[Templates] Plugins and Unicode confusion

Tatsuhiko Miyagawa miyagawa@gmail.com
Thu, 16 Feb 2006 15:28:20 -0800


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.

Maybe you could try de_DE.UTF-8 if your system has that locale.

Otherwise, I'd say throw away the POSIX and use DateTime and
DateTime::Locale modules.

--
Tatsuhiko Miyagawa