Re: [PHP] Converting a Unicode code to related charachter

2011-12-19 Thread Ali Asghar Toraby Parizy
Thanks for your reply. But the function that I've written, converts a code to a character. for example if input is u0631 the output will be: ARABIC LETTER REH "ر" But I think that use of this json_decode() is a little nonsense! I didn't find a straightforward function to do this ,though I've search

Re: [PHP] Converting a Unicode code to related charachter

2011-12-18 Thread Fatih P.
there is iconv to do this. you should better check that. On Sun, Dec 18, 2011 at 11:33 AM, Ali Asghar Toraby Parizy < aliasghar.tor...@gmail.com> wrote: > Hi. > As I was writing a php code last week, I struggled with a function that was > supposed to convert Unicode code to a character. At last

[PHP] Converting a Unicode code to related charachter

2011-12-18 Thread Ali Asghar Toraby Parizy
Hi. As I was writing a php code last week, I struggled with a function that was supposed to convert Unicode code to a character. At last I wrote this function: function unicodeToChr($param) { $a =json_decode('{"t":"'.$param.'"}'); return $a->t; } In this function the $param sho