[Development] Qt6: Adding UTF-8 storage support to QString
Tor Arne Vestbø
Tor.arne.Vestbo at qt.io
Fri Jan 18 16:26:51 CET 2019
Picking up on this:
If we plan to standardise on our Qt source code being UTF8, can we please allow QString(“Tor Arne Vestbø") without going through QLatin1Literal/QStringLiteral/QLatin1String/etc etc?
Tor Arne
> On 18 Jan 2019, at 16:01, Jedrzej Nowacki <Jedrzej.Nowacki at qt.io> wrote:
>
> 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
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development
More information about the Development
mailing list