Tag Archive: unicode

May 11

Source code must be UTF-8 and QString wants it

I’ve talked about source code encoding in the past, arguing that the C++ language lacks a fundamental setting. However, since this Monday, Qt 5 now starts to enforce that source code must be UTF-8. In a way. The commit that landed on the qtbase repository finally changed the codec used by QString’s 8-bit methods to …

Continue reading »

Sep 19

QUrl in Qt 5: encoding

One of the classes I used to maintain in Qt was QUrl and I had worked quite extensively with KUrl previously, so I knew what was wrong with the current API. And during the Contributor Summit in Berlin, I volunteered to rewrite QUrl, to add some features KUrl needed. I described the original goals of …

Continue reading »

Jul 17

QString improved

On my birthday, I blogged about how I’d like QString to support proper UTF-8 strings and be much easier to use. The code that I said would be my preferred would be: QString s = u"Résumé"q; Recently, in Qt 5.0 we have begun to make steps to reach that. Most of the work was done …

Continue reading »

Page optimized by WP Minify WordPress Plugin