I have a problem here with Perl v5.8.0 on Red Hat 9. Simplified, my script looks like this:
while (<>) { s/ĉ/cx/g; print; }
This works with older versions of Perl, and it works in the C locale, but it doesn't work here in a UTF-8 locale. I tried putting stuff like "use bytes" or "no utf8" or "no locale", but it didn't help.
Can anyone suggest a good solution, ideally one that is portable between different locales and different versions of Perl?
maybe write it in oct, like s/\344/foo/g instead of s/ä/foo/g ?
Bjoern -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/