we have a console application where we are reading a fixed length file which has a field , map the some data fields and create a pipe delmlimited files.
The fixed length file has some portuguese characters in it when read that field and write it to the pipe delmited file it text is getting mangled.
See example below:
ATUAL.DE PU POS. BANC. POSIT C.PROPRIA LONGO PZO DISPONIVEL PARA VENDA CDB PàS P SNA
ATUAL.DE PU POS. BANC. POSIT C.PROPRIA LONGO PZO D|ISPONIVEL PARA VENDA CDB P�S P SNA
Below is how I am writing it to the file: DO I use the encoding here?
using (StreamWriter writer = new StreamWriter(transOutput))
{
writer.WriteLine(line);
}
Is there any way to handle these characters.