Reputation: 1955
The Question is about Domdocument encoding, when i open an HTML string that contain UTF-8 contents, with loadHTML
method and do my changes , when i want to save it , into a variable with saveHTML
and then put it into the Database, All the Characters was changed to something like this :
روش را امتحان
and i can't read it. what is this characters and any suggestion to prevent this change ?
Upvotes: 0
Views: 154
Reputation: 7273
It appears that you are not parsing the html properly. Read this for more info http://php.net/manual/en/class.domdocument.php
Upvotes: 1