title: How to detect whether a character belongs to a Right To Left language?
body: <p>What is a good way to tell whether a string contains text in a Right To Left language.</p>
  
  <p>I have found this <a href="https://stackoverflow.com/questions/1847972/how-can-i-detect-the-flowdirection-righttoleft-or-lefttoright-automatically-in-wp">question</a> which suggests the following approach:</p>
  
  <pre><code>public bool IsArabic(string strCompare)
  {
    char[] chars = strCompare.ToCharArray();
    foreach (char ch in chars)
      if (ch &gt;= '\u0627' &amp;&amp; ch &lt;= '\u0649') return true;
    return false;
  }
  </code></pre>
  
  <p>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 to a RTL language?</p>