in reply to I need to convert the text into UTF-8 from any charset
Note that there is no reliable way of determining $input_encoding automatically.use Encode qw(decode); my $input_string = 'some octets'; my $input_encoding = 'cp1250'; # or 'iso-8859-1', or 'shiftjis' or wh +atever my $utf8 = decode($input_encoding,$input_string);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I need to convert the text into UTF-8 from any charset
by mohiddinb (Initiate) on Aug 09, 2007 at 12:40 UTC | |
by Joost (Canon) on Aug 09, 2007 at 12:43 UTC |