lass="language-swift">var bytes: [UTF8.CodeUnit] = []
UTF8.encode(&quot;ùÑê&quot;, into: { bytes.append($0) })
print(bytes)
// Prints &quot;[240, 157, 132, 144]&quot;</code></pre>

<p><strong>Parameters:</strong>
  <strong>input:</strong> The Unicode scalar value to encode.
  <strong>processCodeUnit:</strong> A closure that processes one code unit argument at a
    time.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">static func encode(_ input: UnicodeScalar, into processCodeUnit: 