Click here to Skip to main content
15,036,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there...

I am being asked to rewrite a program written by someone else in In the program a number of string values are being stored into disk as follows:

S2 = O.ToString
              FileSystem.FilePut(FileNumber, S2.Length)
              FileSystem.FilePut(FileNumber, S2)

It seems that the programmer used the same VB6 style in .net, he did not take windows coding into account. Unfortunately I could not find a way to get in touch with the programmer and understand what did he do there.

So, i checked some old files that generated using that program, and tried to restore them, for English text, the data are restored perfectly, while for Arabic text, I got question marks.

My guess is that I am using a code page that is different from the one the data has been stored in. So, the question is: what is the default code page used in

[no name] 24-Jul-13 19:53pm
you say you quest ion is Default coding for strings in not what is the default code page used in

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900