[Interest] Why there is no QChar::toLocal8Bit()?
Prav
pr12og2 at programist.ru
Sun Apr 10 14:01:56 CEST 2016
Hi, Nikos.
>> OK ... so as I can get the answer is that "8Bit" here is by mistake and means nothing at all.
> toLocalEncodingAsByteArray() would be horrible. toLocal8Bit() is much better, imo.
toLocal() is not horrible IMO ... and looks like analog of toLatin1() ... and does not have this strange
8Bit which are about nothing
If we somehow need 8Bit in the end of functions returning bytes array ... we should call toLatin1_8Bit() ...
and endless number of many other functions retuning bytes array too
This "8Bit" in the end now looks like naming mistake for me ... and it also
makes feeling that it returnes 8Bit chars (I mean single-byte encoding for local code page), IMO
More information about the Interest
mailing list