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?
Well, that's the thing, the string is filled from some external input source and I have no idea what type of data is in it. All I know is how many bytes it contains and how many I need to extract from it. Most likely it will contain arbitrary binary data like a JPEG or tarball, however, it may also contain 8 bit ISO Latin-1 and even Unicode, which means substr() won't work right and will end up extracting entire multi-byte characters instead of just bytes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How do I safely, portably extract one or more bytes from a string?
by liz (Monsignor) on Nov 29, 2003 at 17:43 UTC | |
by Beechbone (Friar) on Nov 30, 2003 at 20:37 UTC |