File.WriteAllText( , Encoding.GetEncoding("iso-8859-1"))

  • Thread starter Thread starter kazutsugu
  • Start date Start date
K

kazutsugu

Guest
Hello All,

I am having an issue with write text in ISO encode.

static void Main(string[] args)
{
const string originalStr = "≥";
System.IO.File.WriteAllText(@"c:\temp\convertToISO.txt", originalStr, Encoding.GetEncoding("iso-8859-1"));
}


If opened with Notepad, you see a "?" question mark symbol.

If looked into with a hex editor like the one that I found on the net (Free Online Hex Editor & Viewer), the output file contains one character whose hex representation is 0x3f.

Hope anyone could shed some light on this matter.

Thanks,

Kazu

Continue reading...
 
Back
Top