Autor Beitrag
technotoolz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win98;Win2k;WinXP
D7 Ente
BeitragVerfasst: Fr 16.04.04 13:36 
Wer kann mir sagen wie ich aus einer Unicode Textdatei eine Ansi textdatei mache?
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Fr 16.04.04 14:06 
Vielleicht nützt dir diese function (System.pas) was:
ausblenden Delphi-Quelltext
1:
function UnicodeToUtf8(Dest: PChar; Source: PWideChar; MaxBytes: Integer): Integer;					

_________________
mfg.
mâximôv
technotoolz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win98;Win2k;WinXP
D7 Ente
BeitragVerfasst: Mo 19.04.04 07:34 
Wie muss ich das interpretieren?
Hast du ein kleines Beispiel? Würde mir sehr helfen!
Sven
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314


D6 Ent, K3 Pro (patched)
BeitragVerfasst: Mo 19.04.04 07:53 
Ein wenig in der Delphi-Hilfe geschnüffelt und dies gefunden:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Description

Call UnicodeToUtf8 to convert a Unicode string to a null-terminated sequence of UTF-8 characters.

Dest receives the resulting null-terminated array of UTF-8 characters.

MaxDestBytes or MaxBytes indicates the number of bytes available in the buffer specified by Dest, not counting the byte for the null terminator. 

Source is an array of Unicode characters.

SourceChars is the number of characters in Source. If SourceChars is not specified, Source must be null-terminated.

UnicodeToUtf8 returns the number of bytes written to Dest.

_________________
MDK 9.1, Kernel 2.4.21, KDE 3.1 Kylix 3 Pro (patched), nutze aber auch Windows
technotoolz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win98;Win2k;WinXP
D7 Ente
BeitragVerfasst: Mo 19.04.04 07:56 
Hatte ich auch schon gefunden, aber anhand eines Beispiels lernt sich besser.

Trotzdem Danke
Sven
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314


D6 Ent, K3 Pro (patched)
BeitragVerfasst: Mo 19.04.04 13:32 
Mal ganz ehrlich. Das Posting von maximus und die Hilfe zur Hilfe, daß sollte doch wohl genügen :evil:
Was brauchst Du da denn ein Beispiel :eyecrazy:
Versuch doch das erst einmal selber umzusetzen, da lernt man viel besser bei :think:
Ich denke, das Du es schon schaffen wirst einen einfachen Funktionsaufruf hinzubekommen, oder etwa nicht :wave:
Und dadurch, das Du alle Nase lang ein neues (altes) Thema anfängst, machst Du dich bei den Admins und Mods nicht gerade beliebt.

_________________
MDK 9.1, Kernel 2.4.21, KDE 3.1 Kylix 3 Pro (patched), nutze aber auch Windows