Re: Is there a way to disable utf8 from inside the script?

2003-10-03 Thread Simon Favre
All, I finally got the answer. The person who built our copy of Perl found it. Although the statement "use open ':bytes';" would only work on Dos/Windoze machines, there is a simple way to process real binary data in a Unicode environment. For the record, the answer is: use bytes; See: http://www

[5.8.0] problem with $ in $utf_text =~ s/xxx$//s;

2003-10-03 Thread Ruslan U. Zakirov
peace of code: [snip] require Encode; print Encode::is_utf8($tmp)? "Unicode string.\n":"None Unicode tring.\n"; binmode STDOUT, ":utf8"; print "Text: '$tmp', tag name: '$name'\n"; print "Cool\n" if ($tmp =~ /<\/$name>/s); print "Very Cool\n" if ($tmp