[Development] Qt6: Adding UTF-8 storage support to QString

Jedrzej Nowacki Jedrzej.Nowacki at qt.io
Fri Jan 18 16:01:49 CET 2019


Dnia środa, 16 stycznia 2019 21:12:55 CET André Pönitz pisze:
> On Tue, Jan 15, 2019 at 10:44:45PM +0100, Allan Sandfeld Jensen wrote:
> > On Dienstag, 15. Januar 2019 19:43:57 CET Cristian Adam wrote:
> > > Hi,
> > > 
> > > With every Qt release we see how the new release improved over previous
> > > releases in terms of speed, memory consumption, etc.
> > > 
> > > Any chance of having UTF-8 storage support for QString?
> > 
> > Use QByteArray when you can.
> 
> Unfortunately, quite a few APIs require to use QString, even if
> the typically use case would be completely fine even with ASCII,
> like keys in QVariantMap or QSettings.
> 
> Andre'

As a travelling person with name that can not be represented with latin1, I 
can tell you some funny stories about systems that authors thought that "ascii 
is enough". Unless you want to keep only hex codes or sha1s, please use bigger 
character set.

Cheers,
  Jędrek




More information about the Development mailing list