title: Rust escaped unicode chars to string
body: <p>I'm querying an API over HTTP I'm getting back JSON data with following</p>
  <pre><code>... Dv\\u016fr Kr\\u00e1lov\\u00e9 nad Labem a okol\\u00ed 5\\u00a0km ...&quot;. 
  </code></pre>
  <p>This is what I see when I open the same request in Firefox and show raw data and also when I try to println! the output in Rust.</p>
  <p>I would like Rust to rather interpret these into proper chars. I've tried following function which I've googled and it works partially but it fails for some chars</p>
  <pre><code>    pub fn normalize(json: &amp;str) -&gt; core::result::Result&lt;String, Box&lt;dyn Error&gt;&gt; {
          let replaced : Cow&lt;'_, str&gt; = regex_replace_all!(r#&quot;\\u(.{4})&quot;#, json, |_, num: &amp;str| {
              let num: u32 = u32::from_str_radix(num, 16).unwrap();
              let c: char = std::char::from_u32(num).unwrap();
              c.to_string()
          });
          Ok(replaced.to_string())
      }
  </code></pre>
  <pre><code>Dvůr Králové nad Labem a okolí 5\u{a0}km
  </code></pre>
  <p>What's the proper way to handle such JSON data?</p>