Problem in writing wstring to a file for hebrew/arabic language

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 ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Problem in writing wstring to a file for hebrew/arabic language

    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.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,335
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem on writing to a binary file
    By eyescythe in forum C Programming
    Replies: 15
    Last Post: 10-17-2009, 10:04 PM
  2. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Replies: 6
    Last Post: 05-12-2005, 03:39 AM
  5. Replies: 3
    Last Post: 03-04-2005, 01:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21