title: How to display a character instead of ascii?
body: <p>This is my testing code. Just make a simple HTTP server. Then generating a JSON data that it values is &quot;&amp;&quot;. But the result is what I don't want. The result is below the code block.</p>
  <pre><code>package main
  
  import (
      &quot;encoding/json&quot;
      &quot;fmt&quot;
      &quot;log&quot;
      &quot;net/http&quot;
  )
  
  func testFunc(w http.ResponseWriter, r *http.Request) {
      data := make(map[string]string)
      data[&quot;key&quot;] = &quot;&amp;&quot;
      bytes, err := json.Marshal(data)
      if err != nil {
          fmt.Fprintln(w, &quot;generator json error&quot;)
      } else {
          //print console
          fmt.Println(string(bytes))
          fmt.Println(&quot;&amp;&quot;)
          //print broswer
          fmt.Fprintln(w, string(bytes))
          fmt.Fprintln(w, &quot;&amp;&quot;)
      }
  }
  
  func main() {
      http.HandleFunc(&quot;/&quot;, testFunc)
      err := http.ListenAndServe(&quot;:9090&quot;, nil)
      if err != nil {
          log.Fatal(&quot;ListenAndServe&quot;, err)
      }
  
  }
  </code></pre>
  <p>result:
  Chrome browser show:</p>
  <pre><code>{&quot;key&quot;:&quot;\u0026&quot;}
  &amp;
  </code></pre>
  <p>Console also show:</p>
  <pre><code>{&quot;key&quot;:&quot;\u0026&quot;}
  &amp;
  </code></pre>
  <p>When <code>&amp;</code> not in JSON, browser and console will print <code>&amp;</code>.</p>