title: Hebrew "URL Encoding" in R?
body: <p>I've been referred to both:</p>
  
  <pre><code>?URLencode
  #and
  ?curlEscape
  </code></pre>
  
  <p>I see that both functions work great for English, but fail to provide with the proper translation for Hebrew characters.</p>
  
  <p>For example, the word</p>
  
  <blockquote>
    <p>שלום</p>
  </blockquote>
  
  <p>(Peace, in Hebrew)
  Should be this:</p>
  
  <blockquote>
    <p>%D7%A9%D7%9C%D7%95%D7%9D</p>
  </blockquote>
  
  <p>But instead, both commands translate it to:</p>
  
  <pre><code>URLencode("שלום")
  %f9%ec%e5%ed
  </code></pre>
  
  <p>What do you suggest?  (write it myself, or is there something pre-made)</p>
  
  <p>Thanks, 
  Tal</p>
  
  <p>Update: My sessionInfo:</p>
  
  <pre><code>&gt; sessionInfo()
  R version 2.12.0 (2010-10-15)
  Platform: i386-pc-mingw32/i386 (32-bit)
  
  locale:
  [1] LC_COLLATE=Hebrew_Israel.1255  LC_CTYPE=Hebrew_Israel.1255   
  [3] LC_MONETARY=Hebrew_Israel.1255 LC_NUMERIC=C                  
  [5] LC_TIME=Hebrew_Israel.1255    
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  </code></pre>