title: How are URLs with right-to-left TLDs represented?
body: <p>I'm writing some Ruby code that does some text analysis on domain names.  In looking at the list of valid TLDs, I see some that use right-to-left languages such as:</p>
  
  <ul>
  <li>تونس.</li>
  <li>سوريا.</li>
  <li>السعودية.</li>
  </ul>
  
  <p>Just looking at those TLDs alone shows that the dot (.) appears to the right instead of the left.  If I came across a domain like this in the wild, how would the URL be structured?  Specifically, a left-to-right URL is structured as:</p>
  
  <pre><code>&lt;protocol&gt;://[&lt;user&gt;:&lt;pass&gt;@]&lt;host&gt;:&lt;port&gt;/&lt;path&gt;[?&lt;query&gt;]
  </code></pre>
  
  <p>Additionally, the <code>&lt;host&gt;</code> portion above could be broken out to look like:</p>
  
  <pre><code>[&lt;subdomain&gt;.]&lt;domain&gt;.&lt;tld&gt;
  </code></pre>
  
  <p>(e.g. "foo.example.com")</p>
  
  <p>What is the structure of a right-to-left language URL?</p>