Autor Beitrag
Gesus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Do 24.02.05 22:40 
Hallo! Habe 10Min geschaut, doch leider nix gefunden!

Ich habe ein Memo, welches durch eine Externe Datei gefüllt wird, doch irgendwie werden alle Sonderzeichen (ö,ü,ä,ß) werden zu ganz komischen BuchstabenKombinationen.
Bsp: schön sollte eigentlich 'schön' heißen!

Meine Frage ist, wie kann ich das machen, dass ich nach dem Laden immer noch die Richtigen Buchstaben im Memo habe?

Bitte und danke für Hilfe!

mfg Gesus
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Do 24.02.05 22:44 
die externe datei ist also entweder im ASCII format oder in einem unix-format. solltest die Zeichen also erst nach ANSI konvertieren
Kokel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 79

XP Prof
delphi 2006 Prof.
BeitragVerfasst: Do 24.02.05 22:52 
Gesus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Fr 25.02.05 12:37 
Bei dem Code weiß ich leider nicht was ich da bei CodePage eintragen muss.
Kannst du mir da nochmal bitte helfen?
Gesus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Fr 25.02.05 13:03 
Update, die Dateien, welche ich lade sind in
"UTF-8" codiert!
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 25.02.05 14:21 
dann suche mal nach Suche bei Google "UTF-8" ANSI DELPHI
Gesus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mo 28.02.05 23:52 
lange gesucht, und leider immer noch nix gefunden, was dunktioniert hat
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mo 28.02.05 23:57 
probiere es mal mit stringtowidechar
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 10.03.05 15:21 
hallo ich habe auch das problem.
habt ihr denn schon eine lösung?

mfg
moloch
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Do 10.03.05 15:49 
Hier steht, wie man Unicode in ANSI umwandelt und umgekehrt !

www.swissdelphicente...showcode.php?id=1692

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Gesus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Do 10.03.05 19:04 
Also ich habe es endlich mit

ausblenden Delphi-Quelltext
1:
stl1.Strings[i1]:=UTF8toansi(stl1.Strings[i1]);					


geschaft!

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Fr 11.03.05 08:21 
die funktion gibt es in delphi 5 nicht.
gibt es da eine andere Lösung?
Ich brauch doch im grunde nur die datei unter einer anderen Kodierung zu speichern.
So wie ich es auch manuell mit dem Editor mache
UTF-8 ist das Format und ich speichere unter ANSI

mfg
moloch
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Fr 11.03.05 13:04 
Vielleicht lässt sich die TWebBrowser-Komponente ja missbrauchen. Ich könnte mir vorstellen, dass die mit UTF-8-Format umgehen kann. Habs aber nicht ausprobiert.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Fr 11.03.05 14:16 
Hier gibts nen Thread dazu:
www.delphi-forum.de/...38142&highlight=

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: Sa 12.03.05 15:28 
user profile iconmoloch hat folgendes geschrieben:
die funktion gibt es in delphi 5 nicht.

Eine passende Funktion gibt es auch in der JclUnicode.pas in der Jedi Code Libary(sourceforge.net/projects/jcl)
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Fr 18.03.05 12:23 
dank dir.
es funktioniert.
jetzt muss ich nur noch rausfinden was die jeweilige Datei für eine Codierung hat.
dann bräuchte ich dass nämlich nur bei Dateien anwenden die auch mit UTF-8 codiert sind.

mfg
moloch