title: How to decode utf-8 from REST api in Dart code?
body: <p>I am trying to create a news report app from a Wordpress site using REST API but it is encoded in UTF-8.</p>
  
  <p>I am new in Dart, all I know is that I can decode Utf-8 just by an array of characters not by giving a string (as an input). Then how can I decode a string in Utf-8 for my app?</p>
  
  <pre><code>child: new Text(posts[index]["title"]['rendered'],
                                  style: TextStyle(
                                    fontSize: 21,
                                    fontWeight: FontWeight.bold,
                                  ),
                                  textAlign: TextAlign.center),
                            ),
                            new Padding(
                              padding: EdgeInsets.all(10.0),
                              child: new ListTile(
                                subtitle: new Text(posts[index]["excerpt"]
                                        ["rendered"]
                                    .replaceAll(new RegExp(r'&lt;[^&gt;]*&gt;'), '')),
                              ),
                            ),
  </code></pre>
  
  <p>Here is a picture of the result: <a href="https://imgur.com/gallery/qxkc9yP" rel="noreferrer">https://imgur.com/gallery/qxkc9yP</a></p>