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.
source
share