in reply to generate character string based on byte count !!
Under utf-8, the first 127 characters take up 1 byte, and higer numbered characters take a variable number of bytes (I'm not sure about the exact encoding, but IIRC it can take up to 4 bytes under the current unicode set). Under ascii and latin-1 all characters are encoded using 1 byte (8 bits). Under ucs-2 all characters take 2 bytes, and under ucs-4 all characters take 4 bytes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: generate character string based on byte count !!
by hv (Prior) on Dec 08, 2004 at 11:01 UTC | |
|
Re^2: generate character string based on byte count !!
by barathbr (Scribe) on Dec 09, 2004 at 10:27 UTC |