Subject: | Requres utf8::all for utf8 encoded strings |
Date: | Wed, 12 Sep 2012 21:13:55 +0200 |
To: | bug-LaTeX-Encode [...] rt.cpan.org |
From: | Salvatore Bonaccorso <carnil [...] cpan.org> |
Hi
Gunnar Wolf reported to the Debian bugtracker[1], that LaTeX::Encode
works as a module for for UTF8 output only in conjuction with
utf8::all?
See the example:
----cut---------cut---------cut---------cut---------cut---------cut-----
#!/usr/bin/perl
use strict;
use warnings;
use LaTeX::Encode;
use utf8::all;
my $text = 'Tħış ïš ffùĺł ȯff ŪŦḞ';
my $latex_string = latex_encode($text);
use Data::Dumper;
warn Dumper [ $latex_string ];
----cut---------cut---------cut---------cut---------cut---------cut-----
This produces
$VAR1 = [
"T\x{127}{\\i}\\c{s} {\\\"i}\\v{s} \x{fb00}{\\`u}\\'{l}\x{142} \x{22f}\x{fb00} \\={U}\x{166}\\.{F}"
];
but removing the use of utf8:all still does not work. If so, and you
agree, could that be at least added to the documentation?
Many thanks for your work on this module!
[1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602398#31
Regards,
Salvatore
Message body not shown because it is not plain text.