Hi again,

> use open OUT => ':utf8';
> use open ':std';
> 
> But my output seems to be in iso-8859-1.

Sorry for sloppiness. I did some more test and this problem only occurs if:

a) You say "use CGI;"
b) Your string has only < 256 chars

use utf8;
use open OUT => ":utf8";
use open ":std";
use CGI;         
print "maƱana\n"; #this has \x{241}


You get output in latin 1.
Comment out "use CGI; " and you get output in utf-8.

Does this belong in a different list?

Best,

Gregor Chrupala

Reply via email to