Autor Beitrag
>spEEd>
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: Do 21.04.05 21:49 
Hi,

ich habe folgendes Problem, wenn ich mit readLn eine Zeile aus einer Text-Datei auslese, dann werden die Zeichen, wie "ß", "ä", usw. nicht mehr als diese Zeichen, sondern als Zeichen wie z.B. "ß" angezeigt. Wie kann ich das verhindern, dass beim Auslesen einer Text-Datei diese Zeichen verändert werden?

>spEEd>
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 21.04.05 21:51 
:arrow: CharToOemBuff, OemToCharBuff

Edit: Könnte zwar auch UTF-8 oder so sein. Poste mal einen konkreten String mit Übersetzung. Wenn ein Zeichen in 2 umgewandelt wurden, dann wird es das sein.
>spEEd> Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: Fr 22.04.05 13:08 
"ß" wird zu "ß"
"ä" wird zu "ä"

Werd das gleich mal ausprobieren, ob das klappt.

>spEEd>
>spEEd> Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: Fr 22.04.05 13:21 
Also, Delphi 2005 Architect kennt diese Begriffe nicht mehr :(

>spEEd>


Zuletzt bearbeitet von >spEEd> am Fr 22.04.05 13:50, insgesamt 1-mal bearbeitet
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Fr 22.04.05 13:44 
Okay, das ist dann wohl UTF-8.
UTF-8 ist eine rückwärtskompatible Variante von Unicode. Ähm. Kann dir da aber leider auch nicht direkt helfen.
Wenn ich mich nicht täusche hat das Projekt Jedi Funktionen zur Konvertierung.
>spEEd> Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62


Delphi 2005 Pers.
BeitragVerfasst: Fr 22.04.05 13:49 
Nicht so schlimm, ich hab jetz ne Prozedur erstellt, die die zurückwandelt. Trotzdem vielen Dank!

>spEEd>