title: Encoding Issue in R htmlParse XML
body: <p>I try to scrape a website but can't handle this encoding issue:</p>
  
  <pre><code># putting together the url:
  search_str &lt;- "allintitle:amphibian richness OR diversity"
  url &lt;- paste("http://scholar.google.at/scholar?q=",
               search_str, "&amp;hl=en&amp;num=100&amp;as_sdt=1,5&amp;as_vis=1", sep = "")
  
  # get content and parse it:
  doc &lt;- htmlParse(url)
  
  # encoding isssue, like here..
  xpathSApply(doc, '//div[@class="gs_a"]', xmlValue)
  
    [1] "M Vences, M Thomasâ€¦ - â€¦  of the Royal  â€¦, 2005 - rstb.royalsocietypublishing.org"             
    [2] "PB Pearman - Conservation Biology, 1997 - Wiley Online Library"                                     
    [3] "D Vallan - Biological Conservation, 2000 - Elsevier"                                                
    [4] "LB Buckley, W Jetz - Proceedings of the Royal  â€¦, 2007 - rspb.royalsocietypublishing.org"         
    [5] "MÃ RodrÃ­guez, JA Belmontes, BA Hawkins - Acta Oecologica, 2005 - Elsevier"                        
    [6] "TJC Beebee - Biological Conservation, 1997 - Elsevier"                                              
    [7] "D Vallan - Journal of Tropical Ecology, 2002 - Cambridge Univ Press"                                
    [8] "MO RÃ¶del, R Ernst - Ecotropica, 2004 - gtoe.de" 
  # ...
  </code></pre>
  
  <p>any pointers?</p>
  
  <pre><code>&gt; sessionInfo()
  R version 2.15.1 (2012-06-22)
  Platform: x86_64-pc-mingw32/x64 (64-bit)
  
  locale:
  [1] LC_COLLATE=German_Austria.1252  LC_CTYPE=German_Austria.1252   
  [3] LC_MONETARY=German_Austria.1252 LC_NUMERIC=C                   
  [5] LC_TIME=German_Austria.1252    
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  other attached packages:
  [1] RCurl_1.91-1.1 bitops_1.0-4.1 XML_3.9-4.1   
  
  loaded via a namespace (and not attached):
  [1] tools_2.15.1
  
  &gt; getOption("encoding")
  [1] "native.enc"
  </code></pre>