Good morning,

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

At 09:52 +1000 25/9/11, Charlie Garrison wrote:

Try:

use utf8;

That tells Perl that the script itself (as opposed to input/output) is UTF8.

In this case it *is* the input and output that matter.  That's why I used the 
line:

use encoding 'utf-8';

which is essential.  Without it, as you can tell by trying, you get raw utf-8 
bytes.

'use utf8' is very different and usually does nothing at all.

I hadn't been following the thread so wasn't sure what the requirements were. Which is why I said one method was for setting encoding of the script while other was for encoding of input/output.

Anyway, we're straying off topic.


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