<?php $string = "Café & 'quotes' and € euro"; // ISO-8859-1 mode var_dump( htmlentities($string, ENT_QUOTES, "big5")); // empty string var_dump( htmlentities($string, ENT_QUOTES, "xxx")); // default to utf8 // Café & 'quotes' and € euro
You have javascript disabled. You will not be able to edit any code.