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 "Gareth Reakes (JIRA)" <xe...@xml.apache.org> on 2005/08/15 19:20:54 UTC

[jira] Commented: (XERCESC-1478) XMLString::transcode for spanish characters are returning null on linux

    [ http://issues.apache.org/jira/browse/XERCESC-1478?page=comments#action_12318820 ] 

Gareth Reakes commented on XERCESC-1478:
----------------------------------------

Hi, take a look at posts in the archive about local code page. XMLString converts to your local code page, so if the spanish characters are not in that code page you will see nothing (or rubbish). I will close this bug, if you have more questions bring them onto the mailing list.

Cheers,

Gareth

> XMLString::transcode for spanish characters are returning null on linux
> -----------------------------------------------------------------------
>
>          Key: XERCESC-1478
>          URL: http://issues.apache.org/jira/browse/XERCESC-1478
>      Project: Xerces-C++
>         Type: Bug
>     Versions: 2.6.0
>  Environment: linux
>     Reporter: Rahul
>     Priority: Critical

>
> const XMLCh * xmlch = dom_node->getNodeValue();
> cout << XMLString::stringLen(xmlch) ;                                       ==>returns 5
> const char * c2 = XMLString::transcode(xmlch);
> cout << strlen(c2);                                                                          ==>returns 0
> c2 returns null if the xml file has spanish characters for that node. e.g. Peña
> NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
> This code is working on solaris.
> Could any body suggest how i could fix this.
> Thank you very much

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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