in reply to Re: Date::Manip and German months names
in thread Date::Manip and German months names

The source wants the abbreviation Mar

Not sure. As I'm reading the source, it should (or is trying to) also support "Mär", as set up by the "M${a}r"$a is defined as

my(%h)=(); _Char_8Bit(\%h); my($a)=$h{"a:"};

with the routine _Char_8Bit() mapping "a:" to the char \xe4

sub _Char_8Bit { my($hash)=@_; ... $$hash{"a:"} = "\xe4"; # LATIN SMALL LETTER A WITH DIAERESIS ... }

In other words, "M${a}r" corresponds to ISO Latin "Mär". So it should work, I think.

Replies are listed 'Best First'.
Re^3: Date::Manip and German months names
by EvanCarroll (Chaplain) on Jul 09, 2008 at 19:37 UTC
    I think he is just not encoding properly try to use Encode::encode_utf8
    perl -MEncode -Mutf8 -E'say 1 if encode_utf8("ä") eq encode_utf8("\xe4 +");' perl -MEncode -Mutf8 -E'say 1 if "ä" eq encode_utf8("\xe4");'


    Evan Carroll
    I hack for the ladies.
    www.EvanCarroll.com
      A reply falls below the community's threshold of quality. You may see it by logging in.