Details
Description
This can be demonstrated with the following 2 lines of code.
const XMLCh uval [] =
{ 0x254B, 0x0000}; //BOX DRAWINGS HEAVY VERTICAL AND HORIZONTAL (needs 3 bytes for utf-8)
char* uc = (char*)TranscodeToStr(uval,"UTF-8").adopt(); cout << uc << endl << flush; XMLString::release(&uc); //faulty exception;
The error is: "terminate called after throwing an instance of 'xercesc_3_1::TranscodingException'"
Attachments
Attachments
Issue Links
- relates to
-
XERCESC-1984 TranscodeToStr::transcode throws an exception when transcoding to UTF-8
- Closed
-
XERCESC-1987 Transcoding Issue with single XMLCh to utf8
- Closed