W3C home > Mailing lists > Public > www-international@w3.org > January to March 2002

Rossette library for Unicode

From: souravm <souravm@infy.com>
Date: Wed, 6 Mar 2002 08:28:32 +0530
Message-ID: <755FA95DB839D211856B0008C7287D930DE6A947@kecmsg02.ad.infosys.com>
To: <www-international@w3.org>
Hi All,

Can anyone, who has worked with Rossette library for handling Unicode characters, clarify my following doubts ?

1. Rosette library defines a class bt_string for holding 8 bit strings. It is possible to create a non uncode string from Unicode string using ExternalEncoding class. The sample code is as follows -

bt_string sjisHello("\u0065\u23ff", ExternalEncoding::ShiftJISMS);

In the above code the unicode string (the first arument in the contructor) will be converted to Shift_JIS. 
Now my question is Shift_JIS supports multibytes characters. But bt_string can support only single byte (8-bit) characters . So in that case how it works ?

2. Now the bt_string class is different than normal character array of C ? In both the cases single byte charcaters are supported.

Thanks in advance,
Received on Tuesday, 5 March 2002 21:59:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:21 UTC