[omniORB] Wide strings

Markus Redeker markus@ibp.de
Wed, 26 Jul 2000 17:22:39 +0200


On Tue, Jul 25, 2000 at 05:54:38PM +0100, Duncan Grisby wrote:

> It's a common misconception that CORBA wchar and wstring mean
> "Unicode". Unfortunately, things aren't anything like that simple.
> CORBA 2.3 allows both char and wchar to be either single byte or
> multi-byte characters, and requires that the ORB knows how to convert
> between different character encodings.

But the spec doesn't request specific character encodings (except the
fallback code sets).

So why don't you implement support only for UTF-16 wstrings? This would
leave out all conversion and (almost) all code set negotiation, and it would
still interoperate with all ORBs that understand UTF-16 (which must be many,
because so many people equate wide strings, UTF-16, and Unicode :-)

If I don't miss anything important, such an implementation would completly
satisfy the requirements of the spec. And it would be very useful.

Regards,


Markus