in reply to Re: utf8 change case on accented characters
in thread utf8 change case on accented characters

Thanks, ikegami

I will do the utf8::upgrade and downgrade thing and see where that puts me.

Yes, I do mean use utf8; although my code file has no BOM, it still seems to work.

I'm so used to using setlocale on perl on our linux servers that I never even thought about why setlocale was available. Importing the module is always a good thing when it's not there by default.

Again, many thanks, and I'll report the results with code samples for the benefit of future googlers and perl monastery residents alike...
  • Comment on Re^2: utf8 change case on accented characters

Replies are listed 'Best First'.
Re^3: utf8 change case on accented characters
by ikegami (Patriarch) on Sep 09, 2009 at 17:35 UTC

    Yes, I do mean use utf8; although my code file has no BOM, it still seems to work.

    Byte order is immutable with UTF-8, so the BOM is useless as a BOM with UTF-8. Some applications use it as a signal that the file is encoded using UTF-8, but Perl uses use utf8; for that.

    I'll report the results with code samples

    By the way, I added an example to my earlier post.

    If you're having problems, please use Devel::Peek and provide us a Dump of the string that's giving you problems.

Re^3: utf8 change case on accented characters
by ikegami (Patriarch) on Sep 09, 2009 at 17:37 UTC

    Yes, I do mean use utf8; although my code file has no BOM, it still seems to work.

    Byte order is immutable with UTF-8, so the BOM is useless as a BOM with UTF-8. Some applications use it as a signal that the file is encoded using UTF-8, but Perl uses use utf8; for that.

    I'll report the results with code samples

    By the way, I added an example to my earlier post.

    If you're having problems, please use Devel::Peek and provide us a Dump of the string that's giving you problems.