Deb,

I think the problem is that you are instantiating an ASCII (8 bit) C string and
then passing it to the DOMString constructor.  Try using the
DOMString::DOMString (const XMLCh * other ) constructor instead, this will
preserve the Unicode characters.

Ram Sadasiv

Debra Kelly wrote:
> 
> I'm using Xerces 1.3, OS = Linux.
> 
> I'm setting a DOMString from a string that that includes the umlat u and it
> is not working.  Below is my very simple code.  I'm sending in
>         Wegen_�berf�llung_geschlossen.doc
> as the command line parm.
> 
> int main(  int argc, const char*        argv [])
> {
>   if (argc != 2) {
>     cout << "please include a string to convert" << endl;
>     return 1;
>   }
> 
>   string cString = argv[1];
>   DOMString domString = cString.c_str();
> 
>   cout << "c = " << cString << endl;
>   cout << "dom = " << domString.transcode() << endl; // this is blank when
> international chars are present
>   return 0;
> }
> 
> Any help will be greatly appreciated.
> 
> Also, is there any way to search the archives for this mailing list?
> 
> Deb Kelly
> Sr. Software Engineer
> Ask Jeeves, Inc.
> (508) 810-1314
> [EMAIL PROTECTED]
> www.ask.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to