in reply to locales, encodings, collations, charsets... how can I match a given MySQL collation?

Possibly you've already figured it out, but that's the effect of not doing use locale (perldoc locale) . Because indeed, perl -le 'print sort qw(e é f z)' prints e f z é, but env LANG=sv_SE.ISO8859-1 perl -Mlocale -le 'print sort qw(e é f z)' does it the right way, e é f z.

  • Comment on Re: locales, encodings, collations, charsets... how can I match a given MySQL collation?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: locales, encodings, collations, charsets... how can I match a given MySQL collation?
by xaprb (Scribe) on Apr 02, 2007 at 12:43 UTC

    I read in the man pages (but forget where) that locale was deprecated in favor of Unicode modules.

      I've never seen anything like that, but even if you are correct, I fail to see how that invalidates my answer.