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

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

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, 02:46 PM