Page 1 of 1

Arabic (and other) letters into unicode string

Posted: Thu Jan 29, 2009 4:41 pm
by marin034
hi all

can somebody point me to right direction

I need to convert Arabic letters into unicode string value regarding http://unicode.org/charts/

is there a php function for accomplishing this?

something like utf8_encode or similar

I've tried bin2hex and all other functions => with no luck.

example for letter "Š" to get value 0160
(from http://unicode.org/charts/PDF/U0100.pdf)

Re: Arabic (and other) letters into unicode string

Posted: Thu Jan 29, 2009 4:48 pm
by VladSun
I'm not sure what you are trying to do but maybe iconv() will be in help?

Re: Arabic (and other) letters into unicode string

Posted: Thu Jan 29, 2009 5:37 pm
by marin034
what I'm trying to do is to get code of specific character

example

$characterCode = getCharacterCode("Š");

and it returns me 0160 (please look on pdf file - I've provided URL)

is there some function build-ed in php
or 3rd part class or function