-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding problem. #22
Comments
Read string from lfm file function TBinaryObjectReader.ReadString(StringType: TValueType): String;
var
i: Integer;
C : Char;
begin
Result:='';
if StringType<>vaString then
Raise EFilerError.Create('Invalid string type passed to ReadString');
i:=ReadDWord;
SetLength(Result, i);
for I:=1 to Length(Result) do
begin
FStream.ReadbufferData(C); // <--- read symbol
Result[i]:=C; // <-- assigned incorrect symbol
end;
end;
|
https://bugs.freepascal.org/view.php?id=38898
But Lazarus create *.lfm files in UTF8 format |
Unfortunately, setting The encoding to UTF16 LE or to UTF16 B causes Lazarus that it refuse to load .lfm form which have been stored by using this encoding type. I will try to use Akelpad and I will try to find UTF16 without LE or B letters in its encoding type name, but if it will not support it, we will have to only dream about easy drag and drop GUI creation tool for international characters. |
Problem for Linux and Windows.
If you set the Cyrillic text in design mode, then it is displayed incorrectly.
Image
If
Caption
set in Runtime mode, it's ok.PS: Another languages too have problem.
HELLO = ПРИВЕТ = 你好
The text was updated successfully, but these errors were encountered: