This doesn’t work (just echoes “U4e9c”):
echo mb_convert_encoding("U4e9c","UTF-8","auto");
I guess some sort of casting “U4e9c” is needed, but can’t figure out how…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This seems to work fine:
echo "&#" . hexdec(str_replace("U","","U4e9c")) . ";";Update
Here is where the mb_convert_encoding comes in:
This allows me to UPDATE my mysql DATABASE with $k, (whereas without mb_convert_encoding it only works for DISPLAYING inside an HTML page).