I am writing to a file via StreamWriter using Encoding.ASCII encoding. A situation appeared in which I need to write the letter "Ç". But if I try to do this, the file exits the "?" Character.
In this case, I need to use this encoding (I can not use UTF8). Is there any way I can handle this character and make it appear correctly in the file?
An excerpt from the code example:
StreamWriter streamArquivo = new StreamWriter(caminhoArquivo, false, Encoding.ASCII);
streamWriter.WriteLine("COBRANÇA");
I tried to see something related to the letter code "Ç" in byte, etc. but the problem continues. Is there any way to do this?