bizzr3
bizzr3

Reputation: 1955

Domdocument encoding

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 :

روش را امتحا&#1606

and i can't read it. what is this characters and any suggestion to prevent this change ?

Upvotes: 0

Views: 154

Answers (1)

Abhidev
Abhidev

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

Related Questions