Axis of Evil: Windows, Perl, and Unicode

I have spent all day trying to figure out how to handle a text file containing a Windows directory list with Perl 5.8.7. Did I mention that the text file contains latin characters? The text files are generated using the “dir” command from the Windows command line.

Tip 1: The “\U” switch to the “cmd” line will cause all output of subsequent commands to be output as Unicode.

This was great! I was finally going to be able to get rid of the gibberish that I had been dealing with for a week and have a standardized format that Perl could surely handle. WRONG! Yes, I did have the text files as Unicode but I had absolutely no luck figuring out how to process them.

Until I found this link -> http://groups.google.com/group/php.notes/msg/cd7288f1ae61b59e.

To say I have been across the interweb looking for that info would be an understatement. How did I get to that location? Well…

I love software development and the internet is very useful and easy to navigate. I hope this helps someone.

Stay tuned for a new theme and new widgets.

Thanks.

0 Responses to “Axis of Evil: Windows, Perl, and Unicode”


  1. No Comments

Leave a Reply