title: How to deal with German "Umlaute" in an API request?
body: <p>I am working with the API from the &quot;Deutsche Bahn&quot; for a small private data science project in R. However, cities with an &quot;Umlaut&quot; such as &quot;Köln&quot; or &quot;München&quot; etc. are cumbersome, since the request with the GET command, i.e.,</p>
  <pre><code>url_location &lt;- paste0(&quot;https://apis.deutschebahn.com/db-api-marketplace/apis/fahrplan/v1/location/&quot;,&quot;Koeln&quot;)
  rd           &lt;- GET(url_location, 
                      add_headers(Accept = &quot;application/json&quot;,
                                  `DB-Client-Id`     = &quot;client id&quot;, 
                                  `DB-Api-Key`       = &quot;api key&quot;))
  </code></pre>
  <p>yields entries like <code> K&lt;U+00F6&gt;ln Hbf</code> which I cannot work with.</p>
  <p><strong>Question:</strong> Is there any option in the GET command (which I could not find) or any alternative which is able to interpret these &quot;Umlaute&quot; appropriately? Or is there a way to substitute these strange &quot;&lt;U+00F6&gt;&quot; parts afterwards?</p>