in reply to utf8, locale and regexp
2. Both pragmas only influence the encoding of your code. That means that a) your code file should now be utf-8 encoded or you'll get all kinds of errors. b) your output and input encoding is not affected at all so it's still possible that input and output will be in some other encoding.
3. perl does not understand unicode locales. In fact the documentation specifically warns against using both locales and unicode. You're probably better off specifically setting a binmode(STDOUT,":utf8"); instead of using the locale.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: utf8, locale and regexp
by ikegami (Patriarch) on Apr 10, 2007 at 13:44 UTC | |
by Anonymous Monk on Apr 10, 2007 at 15:14 UTC | |
|
Re^2: utf8, locale and regexp
by Anonymous Monk on Apr 10, 2007 at 15:08 UTC | |
by Joost (Canon) on Apr 10, 2007 at 15:51 UTC |