sancho1980
Technical User
Hello,
I'm new to Delphi.
I'm trying to write a vocabulary trainer of my own. Do you mind helping me out?
Suppose I have written a vocabulary list in the windows editor and save it as a .txt - file using the UTF8-encoding.
Now, even loading that document into a TMemo text field doesnt work properly for special characters (I tried some czech letters like ? and ž) which are displayed in a very funny way.
What I want to do is use my own TEntry class which is defined as follows:
type
TEntry = class
private
FTarget: WideString;
FSource: WideString;
public
property Source: WideString read FSource write FSource;
property Target: WideString read FTarget write FTarget;
constructor Create (s, t: string);
end;
I want to load all the entries from my vocabulary list file into an instance of TVocabulary list:
type
TVocabularyList = class(TList)
private
public
function LoadFromFile(FileName: String): Boolean;
end;
The elements of this list would then all be TEntry objects. It works fine as long as I use only characters from one set in the list and store it using the normal ANSI encoding but I want this program to work with UNICODE so that I can virtually use it for any language. Any ideas? Please help me!!!m *should* so is read the
I'm new to Delphi.
I'm trying to write a vocabulary trainer of my own. Do you mind helping me out?
Suppose I have written a vocabulary list in the windows editor and save it as a .txt - file using the UTF8-encoding.
Now, even loading that document into a TMemo text field doesnt work properly for special characters (I tried some czech letters like ? and ž) which are displayed in a very funny way.
What I want to do is use my own TEntry class which is defined as follows:
type
TEntry = class
private
FTarget: WideString;
FSource: WideString;
public
property Source: WideString read FSource write FSource;
property Target: WideString read FTarget write FTarget;
constructor Create (s, t: string);
end;
I want to load all the entries from my vocabulary list file into an instance of TVocabulary list:
type
TVocabularyList = class(TList)
private
public
function LoadFromFile(FileName: String): Boolean;
end;
The elements of this list would then all be TEntry objects. It works fine as long as I use only characters from one set in the list and store it using the normal ANSI encoding but I want this program to work with UNICODE so that I can virtually use it for any language. Any ideas? Please help me!!!m *should* so is read the