well i am using all these codes:
// StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath + "\\notaventa.txt");
// StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath + "\\notaventa.txt", false, System.Text.Encoding.GetEncoding(1252));
' Dim objEscritor = New StreamWriter("C:\temp\salida_encoding.txt", True, System.Text.Encoding.Default)
// StreamWriter file = new StreamWriter(AppSettings.Instance.Dpath + "\\notaventa.txt", true, System.Text.Encoding.ASCII);
but none work for print
canción
everyone print
canci?n
how can i fix it? i am using
compact framework 3.5
for Hand helds
ASCII does not include support for the
ócharacter. Unless you have compelling reason otherwise, you should always use Unicode:Unrelated to your question: You should use
Path.Combine(rather than explicit string concatenation) for constructing file paths. It would save you the headache of determining whether to include the leading/trailing\or not.