php get from MSQL encoding

//fix bug encoding from MYSQL (latin1), ENT_HTML5=(16|32)

htmlentities($url, (16|32), “UTF-8″);