---
layout: "default"
title: "UTF8"
description: "Swift documentation for 'UTF8': A codec for translating between Unicode scalar values and UTF-8 code."
keywords: "UTF8,struct,swift,documentation,decode,encode,isContinuation,CodeUnit"
root: "/v3.1"
---

<div class="intro-declaration"><code class="language-swift">struct UTF8</code></div>

<div class="discussion comment">
    <p>A codec for translating between Unicode scalar values and UTF-8 code
units.</p>
</div>

<table class="standard">
<tr>
<th id="inheri