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

Thiago Macieira thiago.macieira at intel.com
Sun Apr 10 18:12:25 CEST 2016

On domingo, 10 de abril de 2016 10:54:37 PDT Prav wrote:
> Hello, Thiago.
> >> But is this codec always NOT a 16-bit codec and NOT a 32-bit codec?
> > 
> > Why not?
> Because I try to get what this "8Bit" (which previouse made me think that
> toLocal8Bit is converting to single-bytes ... chars) in name means.
> Is there a chance that it means nothing?

Yes. It's possible, though extremely unlikely, that the locale's encoding is 
not 8-bit, but 16- or 32-bit. Though I think that a lot of software would 
break, so you're not going to see that.

Anyway, the point is that it's very frequently a multibyte 8-bit encoding.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list