QML Javascript "console.log" with UTF-8

As we all know, in QML Javascript we can connect to the console by calling the console.log function.

However, in my experience, I cannot register UTF-8 lines so that the console that the lines are still in the correct characters, some are replaced by question marks.

For instance:

console.log("XXXaàáảãạYYY");

will become (in the console):

XXX??????YYY

How to solve this problem? I know that the console is only for debugging, so I can use the Latin language, but in any case, full support for UTF-8 would be more interesting.

+4
source share
1 answer

My console shows them just fine.

, QML, UTF-8.

0

Source: https://habr.com/ru/post/1530952/


All Articles