in reply to Accented characters
Perl uses iso-Latin-1 (or utf-8) encoding internally, Windows cmd.exe seems to still be using the DOS codepages. So you need to re encode your string to the appropriate code page before you print it.
Assuming the US DOS code page 437:
use Encode; my $string = 'é ç î ù'; Encode::from_to($string, 'iso-8859-1', 'cp437'); print $string;
If you are using an international version of Windows, you may need to use a different code page.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accented characters
by ackmanx (Initiate) on Feb 10, 2006 at 17:00 UTC | |
|
Re^2: Accented characters
by Errto (Vicar) on Feb 10, 2006 at 19:39 UTC | |
by thundergnat (Deacon) on Feb 10, 2006 at 21:06 UTC |