: 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
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
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
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
-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 = ) {
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