in reply to Re: How do I safely, portably extract one or more bytes from a string?
in thread How do I safely, portably extract one or more bytes from a string?
That won't work. If the string contains byte sequences that look like unicode characters, then reading 1 character will return multiple bytes, just as it would if you were reading from a unicode file.
I tried almost the exactly the same code as AnonyMonk, but got different results...leastwise I did last night! Today, I'm getting different results? I guess I just saw what I was expecting to see:(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How do I safely, portably extract one or more bytes from a string?
by Anonymous Monk on Nov 29, 2003 at 06:24 UTC | |
by BrowserUk (Patriarch) on Nov 29, 2003 at 13:44 UTC | |
|
Re: Re: Re: How do I safely, portably extract one or more bytes from a string?
by davido (Cardinal) on Nov 29, 2003 at 04:46 UTC | |
by BrowserUk (Patriarch) on Nov 29, 2003 at 13:42 UTC |