C++ Logo

sg16

Advanced search

Re: utfN_view

From: Zach Laine <whatwasthataddress_at_[hidden]>
Date: Thu, 4 May 2023 11:36:13 -0500
On Thu, May 4, 2023 at 1:20 AM Jens Maurer <jens.maurer_at_[hidden]> wrote:
>
>
> On 04/05/2023 03.58, Zach Laine via SG16 wrote:
> >> I don't think the operator<< above works as a general-purpose method regardless. What does it do when CharT is wchar_t?
> >
> > It transcodes to UTF-16, of course.
>
> I hope not. On my box, wchar_t is not UTF-16, it's UTF-32.

Right. I should have said, "it transcodes to UTF-N, of course, where N
is the number of bits_of<wchar_t>(), of course". On all the big 3,
that means UTF-16 or UTF-32.

Zach

Received on 2023-05-04 16:36:27