php - Domdocument encoding -


the question domdocument encoding, when open html string contain utf-8 contents, loadhtml method , changes , when want save , variable savehtml , put database, characters changed :

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

and can't read it. characters , suggestion prevent change ?

it appears not parsing html properly. read more info http://php.net/manual/en/class.domdocument.php


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -