Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
GCC bug #79511
#include <iostream> #include <codecvt> #include <string> #include <iomanip> int main() { // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79511 static char const src[] = "\xE2\x82\xAC"; std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> conv; auto const dst = conv.from_bytes(src); std::cout << std::hex << std::setw(4) << std::setfill('0') << (unsigned) dst[0] << std::endl; }
run
|
edit
|
history
|
help
0
Dar
MemCpySetChar
arthi3.cpp
python
Rrrrrrrr
sdfsdf
code
https://rextester.com/TXKE53925
Newspaper
Income calculator