From: Kenneth Whistler (email@example.com)
Date: Mon Apr 19 2004 - 16:46:41 EDT
I think this was just a confused way of asking how to
convert UTF-16 into UTF-8:
U+0427 is the Unicode encoded character.
0x0427 is the UTF-16 character encoding form for it.
0xD0 0xA7 is the UTF-8 character encoding form for it.
Mino, sample code for how to do this is available at:
Many Unicode support libraries will have a UTF-16 <--> UTF-8
conversion routine built in somewhere. Check in the documentation
of the libraries for details.
This isn't a standard C function call -- it is in the libraries.
> This is not at clear:
> the character U+0427 is Ч in the Cyrillic block, and what does this have to
> do with the two characters Ð and §, which are U+ 00D0 and U+00A7 ?
> Are you wondering how to store 0x0427 in a binary file ? Or what ?
> Raymond Mercier
> > > Contact: firstname.lastname@example.org
> > > Report Type: Other Question, Problem, or Feedback
> > > Opt Subject: Unicode conversion
> > >
> > > I would like to convert a 2 byte Unicode code into its
> > > corresponding Unicode character (for instance the decimal 1063 or the
> > > hexadecimal 0427 into 'Ð§'). Is there a C function in order to make the
> > > conversion? What file .h do I need to include in the C program? Can I
> > > use the 6.0 version of the Microsoft Visual C++ compiler, or do i
> > > need a newer version?
> > > Thanks a lot in advance.
> > > Mino Napoletano
This archive was generated by hypermail 2.1.5 : Mon Apr 19 2004 - 17:27:47 EDT