|
-
November 18th, 2005, 06:28 AM
#1
Foreign Characters
Hi all.
I'm having some problems writing foreign characters to xml files.
Here is a snippet of my test code:
CFile myFile;
myFile.Open("test.xml", CFile::modeCreate | CFile::modeWrite, &fileerror);
myFile.Write("é", strlen("é"));
myFile.Close();
As you can see, this simply creates an xml file and attempts to write some foreign characters to it.
However, when I open this in an XML editor (I use XML SPY), the charatcers show up as garbage. If I take this string in the clipboard and paste it into the file, save, and reopen it, the text shows fine. So I know it's possible to have these characters displaying correctly, but not the way I'm writing them from my application.
Any help is appreciated on what I would do to fix this.
Jim
P.S: These characters show okay in notepad.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|