If you see this link
Its all about unicode code range
example :
U+0644 ل d9 84 ARABIC LETTER LAM
In PostgreSQL its easy to get hex value :
select encode('ل','hex')
it will return the hex value, d9 84.
but how to get the unicode code point ?
Thanks