problem in writing a file
-
Hello I am writing a file. The text of file is not in English, but it can be in chinese, arabic, spanish etc language. Currently i am testing for chinese language. But when the file is written, i can not find the exact text i have written. I mean after writing the file, when i open the file, it dowsn't display me the original text i have sent to be written. I think there is some problem in writing that file. Can someone tell me how can i write a file in any other language other than english??? Regards
sAqIb "Our scientific power has outrun our spiritual power. We have guided missiles and misguided men." Dr. Martin Luther King Jr.
-
Hello I am writing a file. The text of file is not in English, but it can be in chinese, arabic, spanish etc language. Currently i am testing for chinese language. But when the file is written, i can not find the exact text i have written. I mean after writing the file, when i open the file, it dowsn't display me the original text i have sent to be written. I think there is some problem in writing that file. Can someone tell me how can i write a file in any other language other than english??? Regards
sAqIb "Our scientific power has outrun our spiritual power. We have guided missiles and misguided men." Dr. Martin Luther King Jr.
How are you opening the file? What utility are you using?
Deja View - the feeling that you've seen this post before.
-
Hello I am writing a file. The text of file is not in English, but it can be in chinese, arabic, spanish etc language. Currently i am testing for chinese language. But when the file is written, i can not find the exact text i have written. I mean after writing the file, when i open the file, it dowsn't display me the original text i have sent to be written. I think there is some problem in writing that file. Can someone tell me how can i write a file in any other language other than english??? Regards
sAqIb "Our scientific power has outrun our spiritual power. We have guided missiles and misguided men." Dr. Martin Luther King Jr.
Make sure you use Unicode when reading and writing the file. UTF-8 is typically used in files, but UTF-16 works as well and have the advantage of a mandatory Byte Order Mark identifying the encoding. Unfortunately a lot of people still save with ANSI encodings which varies from system to system (due to ignorance I guess, but probably it did not help Microsoft named it the "Default" encoding which is an unfortunate name for something that is depricated).