# C1.Zip.C1ZipFile.UseUtf8Encoding

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Zip_C1ZipFile_UseUtf8Encoding_" data-uid="C1.Zip.C1ZipFile.UseUtf8Encoding*">UseUtf8Encoding Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Zip_C1ZipFile_UseUtf8Encoding_" data-uid="C1.Zip.C1ZipFile.UseUtf8Encoding*"></a>
<h4 id="C1_Zip_C1ZipFile_UseUtf8Encoding" data-uid="C1.Zip.C1ZipFile.UseUtf8Encoding">UseUtf8Encoding</h4>
<div class="markdown level1 summary"><p>Determines whether file names and comments should be stored in UTF8 format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool UseUtf8Encoding { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property UseUtf8Encoding As Boolean</code></pre>
</div>
<h5 id="C1_Zip_C1ZipFile_UseUtf8Encoding_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The Zip specification does not specify what character encoding to be used for the 
embedded file names and comments. The original IBM PC character encoding set, 
commonly referred to as IBM Code Page 437, is supposed to be the only encoding supported.
Because of this, some zip utilities will not allow storing file names or comments with 
Unicode characters. Others do allow it, but those file names and comments may not be
read correctly by other utilities.</p>
<p>Setting the <b>UseUtf8Encoding</b> to true causes C1Zip to store and retrieve
file names and comments using the Utf8 encoding, which allows Unicode characters. The
caveat is that Unicode file names may not be read correctly by other zip utilities.</p>
</div>
</div>
