[Interest] Why there is no QChar::toLocal8Bit()?

Konstantin Tokarev annulen at yandex.ru
Sat Apr 9 23:12:14 CEST 2016

09.04.2016, 19:45, "Prav" <pr12og2 at programist.ru>:
> Hi, Thiago Macieira.
>>  It's intentional because it's superfluous. You can get the same by running
>>          QString(the_qchar).toLocal8Bit();
>>  converting to a multibyte 8-bit representation is a string operation anyway.
> Multibyte?! I thought it should be like
> char QChar::toLocal8Bit() const;
> No?

For example, popular choice for Local8Bit encoding is UTF-8, which is multibyte.


More information about the Interest mailing list