[ new attempt - encoding is tricky... ]

Gunnar Hjalmarsson wrote:
Octavian Râsnita wrote:
If I used it in a UTF-8 encoded perl program and was also using "use utf8;" in it, I expected that it understand that it should be encoded to UTF-8.

I don't think that's what the utf8 pragma is about. (But, as I'm sure you understand, my UTF-8 knowledge is limited.)

    perldoc utf8

This is an example program where "use utf8;" makes a difference:

    use utf8;
    $igår = '2009-02-24';
    print "Yesterday: $igår\n";

("igår" is Swedish for "yesterday")

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to