Combining accent and character into one character in java 7
问题 I am trying to write a java code that returns a single character combining both a character and an accent. The actual result of combining is a string and not one single character. The following is a simple method to illustrate what I am trying to do. Thank you private char convert (char c) { if (c == '\u0130') { return '\u0069 \u0307'; // If the return value is String I get i. } //I need small i double dot else return c; } 回答1: Normalizer can decompose/compose your character as you like: