Tror du skal have fat i noget encoding og GetEncoding(1252). Kan ikke helt huske det, prøv at se om kan finde på google om det. Ellers vender jeg lige tilbage senere :o)
The GetEncoding method relies on the underlying platform to support most code pages; however, the .NET Framework natively supports some encodings.
For a list of code pages, see the Encoding class topic. Or use the GetEncodings method to get a list of all encodings.
To get the encoding associated with the default ANSI code page in the system's regional settings, use GetEncoding(0) or the Default property. To determine the default code pages used on the system, use the Windows API GetSystemDefaultLangID. To determine the current ANSI code page, use the Windows API GetACP.
GetEncoding returns a cached instance with default settings. Use the constructors of derived classes to get an instance with different settings; for example, the UTF32Encoding class provides a constructor that allows you to enable error detection.
Arne> StreamWriter tager encoding, bare ikke som det eneste argument. Der skal enten en fysisk sti til en fil, eller en stream med, sammen med en encoding.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.