Get the Middle/Beginning/End arabic char in string
问题 Most of the Arabic letters have multiple contextual forms for example the latter ب has general unicode 0628 . But if latter come in the beginning of word will take this form بـ unicode FE91 . Middle = ـبـ unicode FE92 . End of the word = ـب unicode FE90 . I'm trying to get the char code but i always get the general unicode. procedure TfMain.btn2Click(Sender: TObject); const Str = 'يبداء'; Ch = 'ب'; begin ShowMessage(IntToHex(Ord(Ch), 4)); // return 0628 - Correct ShowMessage(IntToHex(Ord