To workaround this, create a helper function in C++ that converts QStrings to Utf8, and call this from within your QML / JavaScript functions:
in your app.h
Q_INVOKABLE
QString Utf8EncodeString(const QString &encodeString);
in your app.cpp
QString app::Utf8EncodeString(const QString &encodeString) {
return encodeString.toUtf8();
}
In the QML change the getData() function thusly:
function getData(){
return app.Utf8EncodeString("¿Cómo están las cosas en el mundo hoy?");
}