DarkLeafyGreen
DarkLeafyGreen

Reputation: 70466

How to deal with special chars in php

I load a UTF-8 encoded json file using php like this:

$string = file_get_contents("_locales/de/messages.json");

When I echo $string I get chars like

delete_context":{ "message": "Löschen" }

where it should be Löschen.

Any idea how to fix that?

Upvotes: 0

Views: 160

Answers (1)

John Giotta
John Giotta

Reputation: 16984

Possible resolution: php: file_get_contents encoding problem

Upvotes: 1

Related Questions