[fpc-pascal] JSON and UTF8

Ludo Brands ludo.brands at free.fr
Tue Jul 10 10:22:25 CEST 2012


> 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 called 
> standard. You can perfectly drive it.
> 

An old car without a seat belt is buggy although when it was built seat
belts where not standard. 

> Just as Unicode is nowadays standard, N years ago, it was not.
> 
> Since backwards compatibility is very important, we must 
> offer the option.
> 
The Json standard specifies unicode. Why have utf8 default off?  
Old cars are retro-fitted with seat belts. Why sell new cars with seat belts
as an option? 

Ludo 




More information about the fpc-pascal mailing list