=&gt; nil, :transcode_options =&gt; {})</pre>

<p>Create stream writer associated with destination io. Data will be transcoded to <code>:external_encoding</code> using <code>:transcode_options</code> before compressing.</p>

<p>It may be tricky to use both <code>:pledged_size</code> and <code>:transcode_options</code>. You have to provide size of transcoded input.</p>

<pre class="ruby"><span class="ruby-comment">#set_encoding(external_encoding, nil, transcode_options)</span>
</pre>

<p>Set another encoding