We don't provide ready-made code.
campbell@computer_name:~/java> java UnicodeCreator "Campbell Ritchie ßüÜöÖäÄ¼ JØran"
Campbell Ritchie \u00df\u00fc\u00dc\u00f6\u00d6\u00e4\u00c4\u00bc J\u00d8ran
They are formed from two chars put together to form a code point, which is of type int. You can probably iterate the String getting code points, some of which would be > 0xffff.
Rob Spoor wrote:Those aren't valid Java chars anyway, as Java only goes from 0 to 65535.
As I said, I don't know how my technique ought to handle them. You could split them with i & 0xffff or i >> 0x10 & 0xffff. Remember >> has a higher precedence than &.
for both special characters.