[Interest] Unicode code points in Vusual Studio. Output differs from MinGW
Thiago Macieira
thiago.macieira at intel.com
Thu Aug 11 23:25:24 CEST 2016
On quinta-feira, 11 de agosto de 2016 19:53:54 PDT Mark Gaiser wrote:
> Thank you for the clear options.
> I was hoping for some magic compile flag to fix this on MSVC 2010, but
> apparently i'm out of luck.
Yeah, Microsoft added one, but it's coming 7 years too late for you.
> The only option i seem to have left for 2010 are apparently:
> - Making sure the source files are UTF-8 formatted (most is ascii at the
> moment)
> - Using tr("Coördinaat"); as opposed to tr("Co\u00F6rdinaat");, that does
> work, but is not preferred.
That should be preferred, since it's a lot more readable.
But note that you can't write QStringLiteral("Coördinat"). You're going to run
into the same mojibake problem, but in reverse.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list