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


rasul moh64 reputationPosted Aug 16, 2014, 2:27 AM EDT
rasul moh64 reputationPosted Aug 16, 2014, 2:53 AM EDT
i am use this encoding iso-8859-1 or utf 8.
Statically single word write and
dynamically word will be encode.........reply soon
VulpesRank #55 · 29.2K reputationPosted Aug 16, 2014, 3:41 AM EDT
If you're opening it in a browser or an HTML text editor, then try opening it with Notepad instead.
VulpesRank #55 · 29.2K reputationPosted Aug 16, 2014, 2:15 AM EDT
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 'ó'.
VulpesRank #55 · 29.2K reputationPosted Aug 16, 2014, 2:35 AM EDT
Ankur JainRank #2,475 · 567 reputationPosted Aug 16, 2014, 3:02 AM EDT
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...
VulpesRank #55 · 29.2K reputationPosted Aug 16, 2014, 3:29 AM EDT
but the accented 'o' was written correctly to the file on both occasions.
Are the Spanish words displaying correctly in the gridview?