On Tue, 10 Jul 2012, Ludo Brands wrote:
Because the old behaviour is not buggy.
It simply did not support Unicode, and does the next best thing,
in casu: it transforms to the system codepage.
A car without ABS and SAT-Nav is not buggy.
It just doesn't support features which are nowadays
So you'd reverse the constructor boolean argument to specify
Utf8 as default,
and let the user choose the old behaviour if he needs it ?
If that is unthinkable then define new contructors
TJSONParser.Create2(...,AUseUTF8 : Boolean = True) or Create2(...,AUseUTF8 :
Boolean = True) and mark
On Tue, 10 Jul 2012, Ludo Brands wrote:
So you'd reverse the constructor boolean argument to specify
Utf8 as default,
and let the user choose the old behaviour if he needs it ?
If that is unthinkable then define new contructors
TJSONParser.Create2(...,AUseUTF8 : Boolean = True) or
Nothing is unthinkable. The other constructs are very ugly.
I reversed the argument default value to True. UTF8 is now
the default.
A very wise decision;)
Ludo
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
On Tue, 10 Jul 2012, Ludo Brands wrote:
Nothing is unthinkable. The other constructs are very ugly.
I reversed the argument default value to True. UTF8 is now
the default.
A very wise decision;)
I must be getting older :)
Seriously: when json support was written, Unicode/UTF8 support
On 10 Jul 2012, at 11:40, Michael Van Canneyt wrote:
I have added a section to
http://wiki.freepascal.org/index.php?title=User_Changes_Trunk
to notify people of this change.
Could you change it to use the same format/template as the other entries?
Jonas
In our previous episode, Michael Van Canneyt said:
http://wiki.freepascal.org/index.php?title=User_Changes_Trunk
to notify people of this change.
Could you change it to use the same format/template as the other entries?
We can always trust Jonas to notice such things :-)
Done.