title: Display unicode characters - Android
body: <p>I have a json for currencies : </p>
  
  <pre><code>[
    {
      "acronym": "EUR",
      "currency": "Euros",
      "favorite": "true",
      "placeholder": "\\u20ac00.00 EUR",
      "symbol": "\\u20ac"
    }
  ]
  </code></pre>
  
  <p>I put this in the asset folder and parse like so:</p>
  
  <pre><code>InputStream stream = context.getAssets().open("currencies.json");
  int size = stream.available();
  byte[] buffer = new byte[size];
  stream.read(buffer);
  stream.close();
  str = new String(buffer, "UTF-8");
  </code></pre>
  
  <p>which I then convert to my pojo object with GSON</p>
  
  <pre><code>Type objectType = new TypeToken&lt;ArrayList&lt;Currency&gt;&gt;(){}.getType();
  ArrayList&lt;Currency&gt; currencies = gson.fromJson(json, objectType);
  return currencies;
  </code></pre>
  
  <p>which works fine (my pojo properties are named the same as in the json).</p>
  
  <p><strong>HOWEVER</strong></p>
  
  <p>When I try to display the symbol it doesn't display it as it should, for example
  I get "\u20ac" instead of "€"</p>
  
  <pre><code>txtAmount.setText(currency.getSymbol());
  </code></pre>
  
  <p>I've tried the following log</p>
  
  <pre><code>Log.d(currency.getSymbol() + "\u20ac");
  </code></pre>
  
  <p>Which gives me:</p>
  
  <pre><code>\u20ac€
  </code></pre>
  
  <p>I don't understand why it won't display the characters properly..</p>