2

How do I convert a character into Unicode title case?

This seems like a simple question, but consider the following:

  • Title case differs from upper case for some characters (reference).
  • Character.toTitleCase(char c) only handles 1:1 mappings (e.g. doesn't work for characters like the German 'ß', which should map to 'SS').
  • Java's String class only offers conversion to upper case (not title case).

Have I missed something in the core libraries that allow this transformation?

Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
  • I've decided [the duplicate I previously chose](http://stackoverflow.com/questions/7360996/unicode-correct-title-case-in-java?noredirect=1&lq=1) is more of a related question, than an exact duplicate. This question doesn't relate to locales, which is the main thrust of the other question. – Duncan Jones Dec 11 '16 at 19:01

0 Answers0