Autor Beitrag
John Sanson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: So 18.05.08 22:27 
Hi,

ich habe ein XML Dokument als String in einem Memo.
Dieses muss als Unicode Dokument gespeichert werden, da auch Umlaute in Tagnamen sind.
Also wenn ich den Text aus dem Memo kopiere und mit einem anderen Programm mit UTF-8 speichere gehts. Nur mit Memo1.SaveFile() nicht.

Wie kann ich also diesen String mit einer UTF-8 kodierung speichern.

Danke

Chris
John Sanson Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72

WinXP,WinVista
Delphi(BDS2006, 5), C#(VS2005, BDS2006), VB6
BeitragVerfasst: So 18.05.08 23:48 
Hab es jetzt so gemacht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
xmlstr := AnsiToUtf8(XMLText.Text);
XMLDocument1.XML.Text := xmlstr;
XMLDocument1.Active := true;
XMLDocument1.SaveToFile('C:\2.xml');