get the correct character translation table for the php version