<?php // Convert the string 'Zoë' from ISO 8859-1 to UTF-8 $iso8859_1_string = "x5Ax6FxEB"; $utf8_string = utf8_encode($iso8859_1_string); echo bin2hex($utf8_string), " "; ?>