[Templates] Plugins and Unicode confusion

Tatsuhiko Miyagawa miyagawa@gmail.com
Thu, 16 Feb 2006 16:24:07 -0800


On 2/16/06, Bernhard Graf <tt@augensalat.de> wrote:
> > > 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.

Oh, okay I misundersood.

> > Maybe you could try de_DE.UTF-8 if your system has that locale.
>
> ~> echo $LANG
> de_DE.UTF-8

No, i mean try this:

 [% USE date(locale =3D 'de_DE.UTF-8', format =3D '%B') -%]
 N=E4chster Monat: [% date.format('00:00:00 01-03-2006') %]

instead of just 'de_DE' in your template.

Because your $LANG has .UTF-8, your command line just works. However,
your template specifies it just "de_DE", which defaults to latin-1, at
least it looks like.


--
Tatsuhiko Miyagawa


--
Tatsuhiko Miyagawa