I'm currently new to C++, but I've written a similar bit of string code in Python before (unrelated, I know). I'm struggling to find out how to print non-standard unicode characters through cout. Below is a copy of my code alongside a copy of the unicode i've been trying to print.
#include <iostream>
using namespace std;
int main() {
string name;
name = "▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n"
"███╗░░░███╗░█████╗░██████╗░███████╗███╗░░██╗██╗\n"
"████╗░████║██╔══██╗██╔══██╗██╔════╝████╗░██║██║\n"
"██╔████╔██║██║░░██║██║░░██║█████╗░░██╔██╗██║██║\n"
"██║╚██╔╝██║██║░░██║██║░░██║██╔══╝░░██║╚████║██║\n"
"██║░╚═╝░██║╚█████╔╝██████╔╝███████╗██║░╚███║██║\n"
"╚═╝░░░░░╚═╝░╚════╝░╚═════╝░╚══════╝╚═╝░░╚══╝╚═╝\n"
"▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀";
cout << name << endl;
return 0;
}
The code's output is as follows:
ΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇ ΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇΓûÇ
Process finished with exit code 0
That's not the full output, but the text simply repeats to fill the unicode character's spaces.
How would I go about printing something like this (preferably without having to single-print unicode characters to match the setup)?
Many Thanks!