It may be even simpler than that: U+0427 may have appeared in his message in UTF-8 because of his mail client.
It could be that he's asking how to convert from an int holding the number 1063 to a wchar_t holding U+0427. The answer to this question is: int charValue = 1063; wchar_t utf16Char = (wchar_t)charvalue; Cheers - rick > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Whistler > Sent: April 19, 2004 13:47 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Web Form: Subj: Unicode conversion- Microsoft > Visual C++ compiler > > 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: > > http://www.unicode.org/Public/PROGRAMS/CVTUTF/ > > 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. > > --Ken > > > Mino, > > 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: [EMAIL PROTECTED] > > > > 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 > >