1
Answer

StreamReader/Writer - change encoding?

scyphe666

scyphe666

20y
3.1k
1
I've got a template.txt which I'm using to create a new textfile from with inserted data. The problem is that using StreamReader/StreamWriter just use UTF8 which doesn't get all characters used in the template: ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ¦ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦¯ ¯¯¦ ¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯¯¦_¦¯ (formatting in forum mess it up) The only thing the StreamReader/Writer pass on to the newly created .txt-file is blanks (or nothing). I've checked around MSDN etc. but found no answer how to set the encoding to unicode with StreamReader/Writer.... Any help would be gratefully recieved.
Answers (1)