Reading a lot about encoding finally I got confused!
I summarize my confusion into two questions:
is there any
encodingatstreamlevel? I mean, is setting theencodingof anstreamhas any meaning? or streams are totally unaware of encoding?If
streamsare unaware ofencoding, then what's the main purpose ofstd::localeandstd::imbue?