I want to read hebrew(unicode) using xerces parser. I am able to read the value in XMLCh. However, while writing it to another file I get gargabe value. I tried using ofstream, wofstream but didnot helped.
Let me know your suggestions.
This is a discussion on Problem in writing wstring to a file for hebrew/arabic language within the C++ Programming forums, part of the General Programming Boards category; I want to read hebrew(unicode) using xerces parser. I am able to read the value in XMLCh. However, while writing ...
I want to read hebrew(unicode) using xerces parser. I am able to read the value in XMLCh. However, while writing it to another file I get gargabe value. I tried using ofstream, wofstream but didnot helped.
Let me know your suggestions.
Posting some code might help.
Or we could just sit around guessing at the several hundred ways it is possible to screw up writing to a file.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.