Forum > LCL
TEdit and Unicode/UTF8 again
(1/1)
hy:
When entering a string into a TEdit special characters are converted to questionmarks.
--- Code: ---
unit foo;
{...}
{$MODE OBJFPC}{$J-}
var
eName : TEdit;
MyString: string;
begin
{...}
MyString := eName.text;
{...}
end;
If I enter the following string into the TEdit: 'the urbanización registered 23° today'
I get 'the urbanizaci??n registered 23? today'
Debugger shows the same with question marks for eName.FCaption ...
Thanks in Advance
--- End code ---
FTurtle:
Strings in your module are short strings.
Add {$H+}
hy:
thanks I did add $H+ but it is the same
wp:
You must upload a small project showing the issue (only pas, lfm, lpr and lpi file, all in one zip). Otherwise it's hard to tell.
hy:
If I strap it down to the minimum it works as expected. This will be getting hard... )-;
Navigation
[0] Message Index