Reading a lot about encoding finally I got confused!
I summarize my confusion into two questions:
is there any
encoding
atstream
level? I mean, is setting theencoding
of anstream
has any meaning? or streams are totally unaware of encoding?If
streams
are unaware ofencoding
, then what's the main purpose ofstd::locale
andstd::imbue
?