I have this line in my php code: $txt = htmlentities($txt, ENT_SUBSTITUTE | ENT_HTML5 ,"ISO-8859-1"); On my homecomputer (using Xampp Control Panel v3.2.1) this works as espected. On stevie I get this error (warning): Warning: htmlentities() expects parameter 2 to be long, string given in... What is going on and how should I resolve this? Thanks !