Re: trouble understanding unicode

2009-03-27 Thread Mark Leighton
: Re: trouble understanding unicode From: Gaurav Vaidya To: gai...@visioninfosoft.com Cc: perl-win32-users@listserv.activestate.com Date: Thursday, March 26, 2009 11:14:04 PM Hi Greg, On Mar 27, 2009, at 6:47 AM, Greg Aiken wrote: the problem here is that the ‘msinfo.txt’ file is not written in

Re: trouble understanding unicode

2009-03-27 Thread Justin Allegakoen
Not at all. In fact I concede. This largely depends on the user's locale. Just in 2009/3/27 Chris Wagner > Sorry for being contrarian here, but this is wrong. Unconditionally > blowing > away control characters is not the right way to do anything. Using Perl's > own encoding disciplines is the

RE: trouble understanding unicode

2009-03-27 Thread Chris Wagner
Sorry for being contrarian here, but this is wrong. Unconditionally blowing away control characters is not the right way to do anything. Using Perl's own encoding disciplines is the right way to do this. While this tr// may work in this case and on other simple files, u just don't know what legi

Re: trouble understanding unicode

2009-03-26 Thread Gaurav Vaidya
Hi Greg, On Mar 27, 2009, at 6:47 AM, Greg Aiken wrote: > the problem here is that the ‘msinfo.txt’ file is not written in > (single byte per character, ascii) format. instead the first two > bytes of the file happen to be (hexFF)(hexFE). Beyond the first two > bytes, each human readable a

RE: trouble understanding unicode

2009-03-26 Thread Justin Allegakoen
-8<- forgive my naivety here but ive never had to use Unicode before. I learned many years ago how to open a simple ascii file using perls open. open (IN, ‘infile.txt’); then read records out of the ascii file. while ($rec = ) {    

trouble understanding unicode

2009-03-26 Thread Greg Aiken
forgive my naivety here but ive never had to use Unicode before. I learned many years ago how to open a simple ascii file using perls open. open (IN, 'infile.txt'); then read records out of the ascii file. while ($rec = ) { print $rec; } but today I wan