From what I understand, when MySQL compares a string stored in utf8_general collation, it first converts it's characters to their ascii equivalents. In other words ḩ = h, ţ = t, ā = a, í = i, etc...
Is there a mapping table which I could use to implement similar comparison function in php or javacript? I know there are alternatives in php such that iconv but their transliteration is slightly different, e.g. í = 'i.
Thank you.