Re: Support for UTF-16 on Solaris

From: Thomas Maslen (maslen_at_pobox.com)
Date: 11/23/03


Date: 23 Nov 03 19:53:11 GMT

In <bfbb8fd4.0311202014.578610c8@posting.google.com> mshetty@mail.com (mshetty) writes:
[...]
> If I have a Client-Server application is it advisable to use UTF-16?.
> The platforms in question are Windows and Solaris.

On the whole, UTF-8 would be a much better choice, because (a) then you
don't have to worry about little-endian vs big-endian issues (whereas
with UTF-16 you have to generate and handle the Byte Order Mark), and
(b) UTF-8's upwards-compatibility from ASCII is awfully convenient,
whereas with UTF-16 you may find yourself having to reinvent the wheel.

About the only advantage of UTF-16 is the simple mapping to/from UCS-2,
which is interesting on Windows but probably less interesting on Solaris
(where, for instance, it may make sense to use UTF-8 as the native format).

Thomas Maslen
maslen@pobox.com



Relevant Pages

  • Re: RfD: XCHAR wordset
    ... It's somewhat worse, because Windows has "A" prototypes, which convert the ... current code page into UTF-16 on the fly. ... Actually, it might be possible to change the current code page to UTF-8, but ... Windows strings are usually not C strings, ...
    (comp.lang.forth)
  • Re: Want Input boxes to accept unicode strings on Standard Window
    ... Yet it is somehow is supposed to be better than Ansi, ... Is UTF-16 the same as what Windows Notepad calls "Unicode"? ... Both UTF-8 and UTF-16 are complete encodings of Unicode. ...
    (microsoft.public.vc.mfc)
  • Re: AfxMessageBox?
    ... I also like to use UTF-8 for XML. ... to MFC to support this sort of thing. ... I know there are different kinds of UTF-16:o) ... Mihai Nita [Microsoft MVP, Windows - SDK] ...
    (microsoft.public.vc.mfc)
  • Re: Want Input boxes to accept unicode strings on Standard Window
    ... somehow is supposed to be better than Ansi, ... Windows Notepad calls "Unicode"? ... and UTF-16 uses up to two 16-bit characters. ... so UTF-8 and Ansi are ...
    (microsoft.public.vc.mfc)
  • Re: Solaris Beginner
    ... Is it possible to access data on a solaris server from ... Windows machine can access that without any additional software ...
    (Pen-Test)