odeScalar</code> or an error.</p>

<p>The following example decodes the UTF-8 encoded bytes of a string into an
array of <code>UnicodeScalar</code> instances. This is a demonstration only---if
you need the Unicode scalar representation of a string, use its
<code>unicodeScalars</code> view.</p>

<pre><code class="language-swift">let str = &quot;‚ú®Unicode‚ú®&quot;
print(Array(str.utf8))
// Prints &quot;[226, 156, 168, 85, 110, 105, 99, 111, 100, 101, 226, 156, 168]&quot;

var bytesIterator = str.utf8