umpirsky / country-list

:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats.
MIT License
5.18k stars 1.55k forks source link

Use UTF-8 for JSON #95

Open Huulivoide opened 5 years ago

Huulivoide commented 5 years ago

The year is 2019, those refusing to use anything but ASCII should be the one to suffer, not the 99% of people whose systems are able to handle UTF-8. So instead of escaping all non ASCII characters on the data, they really should be just in plain, pretty, readable UTF-8.

One might also consider pretty printing the json data.

umpirsky commented 5 years ago

Note to myself, this can be achieved with JSON_UNESCAPED_UNICODE.