Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: simple file question, extra spaces, win32

by SavannahLion (Pilgrim)
on Dec 29, 2003 at 19:31 UTC ( [id://317518] : note . print w/replies, xml ) Need Help??


in reply to Re: simple file question, extra spaces, win32
in thread simple file question, extra spaces, win32

Just so you know, the first two bytes (255 254) is a FFFE byte code marker for unicode. It tells whatever is reading the file that it's a Unicode file and what order the bytes are in. For example, if it was FEFF then it would be in Big Endian order where the sequence of 0's would be reversed.

Example: 254 255 0 85 0 82 0 76....

I was guessing as to what the problem was without looking at the actual file, but since you posted a tidbit from the file, here's a Unicode FAQ, that should help you to understand how Unicode works.

---
Is it fair to stick a link to my site here?

Thanks for you patience.