You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Fred Grafe <fr...@compoze.com> on 2003/06/06 19:50:43 UTC

Convert XmlCh to wchar

Hi

How can I convert a XMLCh* to a WCHAR*??

thanks
fred

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Convert XmlCh to wchar

Posted by da...@us.ibm.com.



Hi Fred,

First of all, you'll need to know the encoding of the destination type.
What type is WCHAR?  If it's wchar_t, then the encoding is
system-dependent.  Once you know the encoding, then you'll need a
transcoder from UTF-16 to that encoding.

Dave



                                                                                                                                            
                      "Fred Grafe"                                                                                                          
                      <fred.grafe@comp         To:      <xe...@xml.apache.org>                                                       
                      oze.com>                 cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                
                                               Subject: Convert XmlCh to wchar                                                              
                      06/06/2003 10:50                                                                                                      
                      AM                                                                                                                    
                      Please respond                                                                                                        
                      to xerces-c-dev                                                                                                       
                                                                                                                                            



Hi

How can I convert a XMLCh* to a WCHAR*??

thanks
fred


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org