Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Unicode I/O
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="himanshu.garg, post: 3524356"] Hi, Thanks for your time! I tried this one and got only second byte of infinity codepoint in the output :- %cat unicode.cpp #include<iostream> #include<string> #include<locale> int main() { std::string ws = "\u221E"; std::locale loc(""); // std::cout << loc.name() << " " << std::endl; std::cout.imbue(loc); std::cout << ws << std::endl; } %g++ unicode.cpp <a warning about the wide character literal> %g++ -v [snipped] gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) % ./a.out | hexdump 0000000 0a1e 0000002 I think I'll try workarounds instead of making the application unicode aware :( Thank You, Himanshu [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Unicode I/O
Top