HI,
My point is, both Windows and Mac API use 16bit UNICODE. If you pass my
plugin a 8bit string I've got to convert it, I've got to allocate memory
to hold the longer 16bit representation. Then if I need to pass it back
I've got to convert it back to multibyte.
Handling UTF-8 multibyte characters is a big inefficient pain. Some
characters are 8 bits, some are extended to multiple bytes. Some
strings have mixtures of single-byte and multi-byte chracters Any kind
of string manipulation is complicated by having to scan the string from
the beginning so as to avoid chopping a multi-byte character in two.
Novice programmers ignore the multi-byte characters and treat the string
as ASCII, leading to internationalization bugs.
I believe most programmers will find it easier to deal with
fixed-width strings using the ANSI wchar_t datatype.
Best Regards, jeff
It's just that variable length>On Tue, Dec 07, 2004 at 09:50:37AM +1300, Jeff McClintock wrote:
"All strings in GMPI should be UTF-8 encoded unicode strings."
UNICODE - yes 8 bit? - Aren't most operating sytems using 16 bit text now?
UTF8 is an encoding that makes the default character be 8 bits. It is implicitly compatible with ASCII and existing tools. To represent unicaode characters > 255, you use a variable-length encoding.
This gives maximal portability with full unicode support.
Tim
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe