Re: Web Form: Subj: Unicode conversion- Microsoft Visual C++ compiler

2004-04-19 Thread Raymond Mercier
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
 
  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
  (End of Report)






Re: Web Form: Subj: Unicode conversion- Microsoft Visual C++ compiler

2004-04-19 Thread Kenneth Whistler
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