Autor Beitrag
Siluro
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

Win XP Prof., Win XP64 Prof., Win 7 Prof.
Delphi 7 Ent., Delphi XE, Delphi XE5
BeitragVerfasst: So 10.09.06 14:05 
Hi,
ich hab ein kleines Problem, und zwar muss ich das kyrillische Alphbet in HTML( &#***; ) umwandeln. Ich hab mir schon die TntKomponenten installiert und wenn ich den kyrillischen Text da rein kopiere, wird er auch richtig angezeigt. Wenn ich aber den Inhalt der Datei über Delphi laden will funktioniert das nicht. Woran kann das liegen?

Danke schonmal im vorraus für eure Hilfe.

Björn
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: So 10.09.06 15:43 
Wie lädst Du ihn rein (Code)?
Was kommt dabei raus?
Kannst Du die Datei anhängen?

Es gibt schon ein paar Fallen die vorhanden sind. Aber bevor wir jetzt raten beantworte mal die Fragen.
Siluro Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

Win XP Prof., Win XP64 Prof., Win 7 Prof.
Delphi 7 Ent., Delphi XE, Delphi XE5
BeitragVerfasst: So 10.09.06 18:00 
Hi,
ich versuche das ganze einfach mit

ausblenden Delphi-Quelltext
1:
MErg.Lines.LoadFromFile(EDQDat.Text);					


rein zu laden. MErg ist vom Typ TTntMemo. Wie gesagt, wenn ich den Dateiinhalt per Copy/Paste in das Memo schreibe, klappts aber wenn ich die Datei lade bekomm ich komische Zeichen.
Einloggen, um Attachments anzusehen!
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Mo 11.09.06 06:15 
Ok, die Datei ist UTF8-Codiert (ein Kleiner Blick in den Speicherdialog von Notepad nach laden in dieses hat genügt). Diese mußt du erst mittels UTF8Decode wieder von AnsiStrings in WideStrings umwandeln.