Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Mixed Unicode and ANSI string comparisons?by exilepanda (Friar) |
on Dec 17, 2015 at 08:28 UTC ( [id://1150600]=note: print w/replies, xml ) | Need Help?? |
#! /usr/bin/perl is useless in windows ( and wrong path here )
Your code don't need that complex. Follow code works as well One problem is that, when you run the script inside a CMD console, it's default code page is ANSI, but whatever codepage you set (chcp) , you will not able to print a proper result ( from my experience ). To print a proper result, you might want to use tools like PowerShell or NppExec(a plugin) with Notepad++ ( you also have to set the output encoding for this plugin )
In Section
Seekers of Perl Wisdom
|
|