Skip to content

Instantly share code, notes, and snippets.

@AVGP
Created November 4, 2016 14:08
Show Gist options
  • Save AVGP/06a4988edcbf592ad3193779878a1232 to your computer and use it in GitHub Desktop.
Save AVGP/06a4988edcbf592ad3193779878a1232 to your computer and use it in GitHub Desktop.
#include <iostream>
char utf8[4] = {'\xe2', '\x80', '\xa6', '\x00'}; // first three bytes are the "..." UTF-8 character, fourth byte is string termination
int main ()
{
std::cout << utf8 << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment