n uses
this method find the same position in the string&#39;s <code>utf8</code> view.</p>

<pre><code class="language-swift">let cafe = &quot;Caf√©&quot;
if let i = cafe.unicodeScalars.index(of: &quot;√©&quot;) {
    let j = i.samePosition(in: cafe.utf8)
    print(Array(cafe.utf8.suffix(from: j)))
}
// Prints &quot;[195, 169]&quot;</code></pre>

<p><strong><code>utf8</code>:</strong>  The view to use for the index conversion.
<strong>Returns:</strong> The position in <code>utf8</code> that corresponds