Re: Character Problem
Hi Tom,
I misrepresented the problem a little. I am writing this out to an XML
file. The XML parser complains that the character (G 0xF7) is invalid.
When I open the file in a text editor like notepad or VS IDE, the text
doesn't look like it should, but if I open in a hex editor, I can see that
the chars are both 0xF7.
If I open the file in a text editor again, and copy/paste the character out
of Character Map program into the text file and save it. Then everything
works fine with the XML parser, and when I open it in the Hex editor the
value of the chars are 0xC3B7.
What I can't understand is what is the difference between what I am writing
to the file, and what get's pasted when I paste the char from character map
program.
AliR.
"Tom Serface" <tserface@msn.com> wrote in message
news:uaNDm6WbGHA.536@TK2MSFTNGP02.phx.gbl...
Hi Ali,
Looks like a font problem, but is the character in question stored in the
file correctly? And are the proper chars in the string when it's read back
in?
Tom
"AliR" <AliR@online.nospam> wrote in message
news:4456806b$0$14865$a8266bb1@reader.corenews.com...
Hi Everyone,
Here is another thing that I can't figure out.
I am writing a text to a file
File.WriteString(_T("2 x 3 = 6 3 x 2 = 6 6 G 2 = 3 6 G 3 =
2.\n"));
But when I read it back I get
2 x 3 = 6 3 x 2 = 6 6 2 = 3 6? 3 = 2
I am not sure why the G (character 0xF7) is not showing up correctly?
The funny thing is that the first one doesn't even show up, and the
second
one shows up as a block.
Any solution to this?
Ali