Good morning,

On 25/09/11 at 1:46 AM +0100, John Delacour <[email protected]> wrote:

See `perldoc encoding` for all the gory details.

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

I was saying that based on one of the examples in the POD, specifically:

  use encoding 'utf8';

I then explicity search for an example using 'utf-8' and couldn't find one.

So I concluded that utf8 is the correct value.

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>

Which just says that utf8 is a relaxed version of utf-8 (or utf8 vs utf-8-strict).

So both are valid, and no, utf-8 is not just an alias for utf8 as I had guessed. But for the purposes of the text filter, either should work fine.


Charlie

--
   Ꮚ Charlie Garrison ♊ <[email protected]>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

--
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