title: Rust: dynamically building escaped unicode scalar values
body: <p>I want to create an escaped unicode scalar value at runtime. How can I achieve this?</p>
  <pre><code>let omega = &quot;3A9&quot;;
  assert_eq!(&quot;\u{3A9}&quot;, format!(&quot;\\u{{{}}}&quot;, omega))
  </code></pre>
  <p>Error:
  <em>thread 'main' panicked at 'assertion failed: <code>(left == right)</code>
  left: <code>&quot;Ω&quot;</code>,
  right: <code>&quot;\\u{3A9}&quot;</code>'</em></p>