Re: oo4o c++ interfaces with unicode

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 12 May 2005 23:50:48 -0800
Message-ID: <42844e48_at_news.victoria.tc.ca>


snailmmx (snailmmx_at_163.com) wrote:
: Hi all,

: The website (www.oracle.com/technology/
: tech/windows/ole/htdocs/OO4O_10g_FO.htm ) said that oo4o can support Unicode
: now. But in the oracl.h header file, all the strings are still char* type.
: Now if I want to write some unicode version applications with c++, will it
: be possible to call the functions provided by oo4o without converting the
: strings manually?

I don't know oo4o, but in general char* is fine for utf-8 (that's the whole point of utf-8).

The issue would be whether the string handling functions support utf-8, and much of the time that doesn't even matter. Many non-utf-8 functions, e.g. strcmp and strstr, work just fine on utf-8 data, and again, that's the whole point of utf-8.

char* _could_ be fine for utf-16 also, if the compiler uses 16 bit characters (like java does). Do any real-world C compilers do this yet?

--

This space not for rent.
Received on Fri May 13 2005 - 09:50:48 CEST

Original text of this message