Just replace %c with %lc, it will do the right thing both in ISO-8859-1 and in Unicode locales. Not sure about other ancient charsets, but I can't think of any reason to support them (including ISO-8859-1 for that matter) in 2014 anymore.
0xB0 is ° in both ISO-8859-1 and in Unicode. -- // If you believe in so-called "intellectual property", please immediately // cease using counterfeit alphabets. Instead, contact the nearest temple // of Amon, whose priests will provide you with scribal services for all // your writing needs, for Reasonable and Non-Discriminatory prices. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

