Hai folks,
i am in need of converting "John" to Unicode UCS-2 (also know as UTF16 i think) Encording.
i tried this function.
output : þÿJohnCode:<?php function Str2Utf16($string) { $string = iconv("ISO-8859-1", "UTF-16", $string); return $string; } ?>
expecting : 004a006f0068006e (obtained from an online converter)
Please help!!



Reply With Quote



Bookmarks