Unicode-correct title case in Java

前端 未结 3 663
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 09:41

I\'ve been looking through all StackOverflow in the bazillion of questions about capitalizing a word in Java, and none of them seem to care the least about internationalizat

3条回答
  •  天命终不由人
    2021-01-01 10:36

    The problem is that the differentiation of upper and lower case letters is very language specific. So many, maybe most languages, do not have such.

    Anyway, there is a Unicode faq: http://www.unicode.org/faq/casemap_charprop.html

    ..and I guess there is a Unicode specific mapping table somewhere (something like that ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt). So its probably best to use your own conversion method.

提交回复
热议问题