Arabic (and other) letters into unicode string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
marin034
Forum Newbie
Posts: 3
Joined: Thu Jan 29, 2009 4:29 pm

Arabic (and other) letters into unicode string

Post 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)
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Arabic (and other) letters into unicode string

Post by VladSun »

I'm not sure what you are trying to do but maybe iconv() will be in help?
There are 10 types of people in this world, those who understand binary and those who don't
marin034
Forum Newbie
Posts: 3
Joined: Thu Jan 29, 2009 4:29 pm

Re: Arabic (and other) letters into unicode string

Post 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
Post Reply