scyphe666

scyphe666

  • NA
  • 48
  • 0

StreamReader/Writer - change encoding?

Aug 3 2004 8:30 PM
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)