How to remove diacritics only for uppercase characters in a string
问题 I need to remove diacritics from uppercase characters in a string. Example : Électronique Caméras => Electronique Caméras (only the É is modified, é in Caméras remains as it is) I am using the following method, which removes diacritics only from the uppercase letters, but the reconstructed string looks like this - Electronique Came?ras (é is lost). How can I reconstruct the string properly? public static String removeDiacriticsFromUppercaseLetters(String input) { if (input == null) return