At 10:13 +1000 25/9/11, Charlie Garrison wrote:

Rather than:

use encoding 'utf-8';

Try:

use encoding 'utf8';

It could be that 'utf-8' is an alias for 'utf8', so may not make any difference, but 'utf8' is the correct value.

Have you tried it? It simply does not work, and it is NOT the correct value. The name of the charset is utf-8 or UTF-8. I think you are confusing this usage with Perl's 'use utf8', which is totally different.


See `perldoc encoding` for all the gory details.

Gory maybe, but nowhere does it suggest you should use a charset that does not exist!

See:

<http://perldoc.perl.org/perlunifaq.html#What%27s-the-difference-between-UTF-8-and-utf8?>

<http://perldoc.perl.org/Encode.html#UTF-8-vs.-utf8-vs.-UTF8>

JD




--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to