How to detect whether a character belongs to a Right To Left language?
问题 What is a good way to tell whether a string contains text in a Right To Left language. I have found this question which suggests the following approach: public bool IsArabic(string strCompare) { char[] chars = strCompare.ToCharArray(); foreach (char ch in chars) if (ch >= \'\\u0627\' && ch <= \'\\u0649\') return true; return false; } While this may work for Arabic this doesn\'t seem to cover other RTL languages such as Hebrew. Is there a generic way to know that a particular character belongs