spanish language word write to text file.
I am used UTF8 method and problem to write the spanish word.
eg.
Capacitación Net ------> input
Capacitación-Net ------> output
how to solve i am use many method no response.
reply me soon...very urgent
Loading

VulpesPosted Aug 16, 2014, 7:41 AM
If you're opening it in a browser or an HTML text editor, then try opening it with Notepad instead.
VulpesPosted Aug 16, 2014, 7:29 AM
but the accented 'o' was written correctly to the file on both occasions.
Are the Spanish words displaying correctly in the gridview?
Ankur JainPosted Aug 16, 2014, 7:02 AM
try like this..
string s = "Capacitación Net";
File.WriteAllText("spanish.txt", s, System.Text.Encoding.GetEncoding(850));
string t = File.ReadAllText("spanish.txt", System.Text.Encoding.GetEncoding(850));
MessageBox.Show(t);
Output:Capacitación Net
Please don't forget to mark it as answer if its helpful...
rasul mohPosted Aug 16, 2014, 6:53 AM
i am use this encoding iso-8859-1 or utf 8.
Statically single word write and
dynamically word will be encode.........reply soon
VulpesPosted Aug 16, 2014, 6:35 AM
rasul mohPosted Aug 16, 2014, 6:27 AM
VulpesPosted Aug 16, 2014, 6:15 AM
The file is also opening fine in my browser (Google Chrome).
However, it does look like a display problem as ó is the HTML or XML symbol for the letter 'ó'.