Forum: Win32/Win64 API (native code)
Prism
by sakura,
27. Mär 2006
Einfach mal F1 auf Encoding und Dir wird wohl System.Text vorgeschlagen ;)
...:cat:...
Forum: Win32/Win64 API (native code)
Prism
by sakura,
27. Mär 2006
So, und jetzt noch der Nachtrag :mrgreen:
Auf deutschen System (Encoding.Default) funktioniert zum Beispiel folgendes:procedure TWinForm.Button1_Click(sender: System.Object; e: System.EventArgs);
var
FS: FileStream;
SW: StreamWriter;
begin
FS := FileStream.Create('C:\Temp\test.txt', FileMode.Create);
try
SW := StreamWriter.Create(FS, Encoding.Default);
Forum: Win32/Win64 API (native code)
Prism
by sakura,
27. Mär 2006
Das ist korrekt und nennt sich UTF-8 ;-) Das heißt, dass Du evtl. mal schauen solltest, welches Textformat Du erwartest.
...:cat:...