* Gert Brinkmann [2016-11-09 16:00]:
> open(my $fh, '>:encoding(UTF-8)', \$html);
> my $orig_stdout = select( $fh );
> print "Ümläut Test ßaß; 使用下列语言\n";
Think of it this way:
Those three lines of code are an elaborate way of doing this:
$html = Encode::encode('UTF-8', "Ümläut Test ßaß; 使用下
On Wednesday 09 November 2016 19:46:46 Gert Brinkmann wrote:
> Pali, thank you very much for your answer. I am using the
> Encode::decode('UTF-8', ...) function now instead of touching the
> flag. Though I am not sure if a routine becomes better (more robust)
> if it accepts utf8 instead the strict
Pali, thank you very much for your answer. I am using the
Encode::decode('UTF-8', ...) function now instead of touching the flag.
Though I am not sure if a routine becomes better (more robust) if it
accepts utf8 instead the stricter utf-8. Or if it is better if it only
accepts strict utf-8?
On 09
On Wednesday 09 November 2016 15:55:47 Gert Brinkmann wrote:
> Hello,
>
...
>
> This prints out the utf8 characters corrupted. You have to flag the
> Variable after writing into it with Encode::_utf8_on() as utf8 to make
> it work correctly. (So activate the commented line.)
>
> Using this _utf8
Hello,
I have the following example code:
-
use strict;
use utf8;
use Encode;
use FileHandle;
binmode STDOUT, ":utf8";
my $html = '';
#-- open filehandle to write into the $html variable as utf8
open(my $fh, '>:encoding(UTF-8)', \$html);
my $