Forum > General
Bug in: format('%n',[double_number])
(1/1)
krexon:
Command:
--- Code: ---format('%n',[123456789.01])
--- End code ---
should give '123 456 789.01', bu gives '123?456?789,01' (question marks instead of spaces)
Is it a bug, because in Delphi everything is OK
I use 0.9.29 SVN 26989 FPC 2.5.1
Marc:
By default fpc uses a "nonbreakable space" character for this (it user settable in a fpc variable I forgot). Lazarus uses UTF8 for strings, this space character lies outside the lower ASCII values so it results in a invalid UTF8 character, which gets displayed as ?
Set this variable to space or the UTF8 equivalent of "nonbreakable space"
krexon:
Sorry for stupid question, but where should I change this variable?
EDIT:
I found
--- Code: ---ThousandSeparator:=' ';
--- End code ---
Marc:
Its not a stupid question, I only knew that there was one, not which :)
Navigation
[0] Message Index