Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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.

  • Comment on Re: Re: simple file question, extra spaces, win32

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://317518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-23 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found