So, I've included the following:
#include <QTextCodec>
And I've also added this piece somewhere in the main function:
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
cout << "\xE2\x88\x9E";
QTextCodec still gives me an error, saying "Cannot open source file: "QTextCodec". What I basically want to achieve is an infinity sign being printed with cout
. However, I'm starting to suspect that I'm missing something big.
Help would be highly appreciated!