Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Json] how to read properly de.json #79

Closed
Chaasof opened this issue Mar 27, 2018 · 3 comments
Closed

[Json] how to read properly de.json #79

Chaasof opened this issue Mar 27, 2018 · 3 comments

Comments

@Chaasof
Copy link

Chaasof commented Mar 27, 2018

Hi, how to get a safe data from json files (de.json for example) => \u00c5 == ?

{"AF":"Afghanistan","EG":"\u00c4gypten","AX":"\u00c5landinseln ...

@Chaasof
Copy link
Author

Chaasof commented Mar 28, 2018 via email

@umpirsky
Copy link
Owner

Try this:

var_dump(json_decode(file_get_contents('vendor/umpirsky/country-list/data/de/country.json')));
php test.php | grep 'gypt'
  string(8) "Ägypten"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants