[Lazarus] Debugging fixed strings in UTF8 encoding
Martin
lazarus at mfriebe.de
Wed Mar 27 20:13:01 CET 2013
On 27/03/2013 04:08, Ernest V Miller wrote:
> Hello!
>
> As we know, Lazarus is UTF8 friendly. When I want to see a value of a
> string var in cyrillic, I should convert it to UTF8, else I only get
> "?????????" in Watches window.
> For this code
>
> function TesterClass.quickTest : Boolean;
> var
> utf8, ansi : string;
> stf : string[50];
> begin
> ansi := Utf8ToAnsi('Кукла');
> utf8 := AnsiToUtf8(ansi);
> <....>
> end;
>
> I see value of utf8 in russian. And I am absolutely happy. But as soon as I
> want to use fixed strings, the only way for me to see my native language
> when debugging is to declare an additional string var as you can see below:
>
Currently the only way would be to allow the user to specify how to
interpret a watch, that is the user would set in the watches properties,
if he wants utf8 or whatever encoding.
You can add a feature request, but currently that would have very low
priority. (or "patches welcome")
More information about the Lazarus
mailing list