I would think that deserialization would be an operation on a Range of std::byte or int8_t, where you would read out code points depending on the encoding. Possibly with either replacement or failure. But until you have code points, it&#39;s not text, it&#39;s raw octets. [Are we still supporting the hypothetical 9 bit byte computer in the standard?] <br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 19, 2018, 07:34 Martinho Fernandes &lt;<a href="mailto:rmf@rmf.io">rmf@rmf.io</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" id="gmail_block_quote0">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_-7949701196720024330moz-text-plain" style="font-family:-moz-fixed;font-size:12px" lang="x-unicode">
      <pre>Apologies for the double message. I forgot to &quot;reply to list&quot;.

On 19.06.18 11:53, Lyberta wrote:

</pre></div></div><div text="#000000" bgcolor="#FFFFFF"><div class="m_-7949701196720024330moz-text-plain" style="font-family:-moz-fixed;font-size:12px" lang="x-unicode">
      <blockquote type="cite" style="color:#000000">
        <pre>The proposed text_view takes TextEncoding and there are
std::utf16[be,le]_encodings that satisfy TextEncoding. This is breaking
abstraction and making user code more complicated.
</pre>
      </blockquote>
      </div></div><div text="#000000" bgcolor="#FFFFFF"><div class="m_-7949701196720024330moz-text-plain" style="font-family:-moz-fixed;font-size:12px" lang="x-unicode"><pre>Can you explain how the user code becomes more complicated? Perhaps with
examples?
</pre></div></div><div text="#000000" bgcolor="#FFFFFF"><div class="m_-7949701196720024330moz-text-plain" style="font-family:-moz-fixed;font-size:12px" lang="x-unicode">
      <blockquote type="cite" style="color:#000000">
        <pre>text_view and
code_point_sequence shouldn&#39;t take encoding schemes as template
parameters, only encoding forms. Essentially, TextEncoding is as
horrible as std::basic_string in its design.
</pre>
      </blockquote>
      </div></div><div text="#000000" bgcolor="#FFFFFF"><div class="m_-7949701196720024330moz-text-plain" style="font-family:-moz-fixed;font-size:12px" lang="x-unicode"><pre>Can you explain why it shouldn&#39;t take encoding schemes? There is no
explanation here, and it isn&#39;t clear to me why not.

</pre></div></div><div text="#000000" bgcolor="#FFFFFF"><div class="m_-7949701196720024330moz-text-plain" style="font-family:-moz-fixed;font-size:12px" lang="x-unicode"><pre><div class="m_-7949701196720024330moz-txt-sig">-- 
Martinho

</div></pre></div></div>

_______________________________________________<br>
Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>