Unicode is tricky in Java and might be impossible in C++

Here’s a challenge for you. Ready?

In Java and C++ on OS X, output to the console the following string:

I have €100 to my name.

You’ll be surprised how hard this is.
(more…)