Say I wanted to print a ÿ
(latin small y with diaeresis) from its Unicode/UTF-8 number of U+00FF
or hex of c3 bf
. How can I do that in PHP?
The reason is that I need to be able to create certain UTF-8 Characters is for testing in my regex and string functions. However, since I have less than 200 keys on my keyboard I can't type them - and since many times I am stuck in an ASCII only world - I need to be able to create them bases solely off of their ASCII safe, UTF-8 character code.
Note: In order for it show correctly in a browser I know that the first step is
header('Content-Type: text/html; charset=utf-8');