wfsp has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; use Encode; use HTML::Entities; my $txt = q{“£”}; # from a windows text file my $utf8 = decode(q{cp1250}, $txt); print encode_entities($utf8); # “Ł” (an L with a stroke)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32 txt (with a £) -> decode -> encode_entities -> L with stroke
by moritz (Cardinal) on Jan 15, 2009 at 15:51 UTC | |
by almut (Canon) on Jan 15, 2009 at 17:39 UTC | |
by ikegami (Patriarch) on Jan 15, 2009 at 17:56 UTC | |
by wfsp (Abbot) on Jan 15, 2009 at 18:35 UTC | |
by wfsp (Abbot) on Jan 15, 2009 at 16:18 UTC |