question: public static String replaceShortname ( String input , boolean removeIfUnsupported ) { Matcher matcher = SHORTNAME_PATTERN . matcher ( input ) ; boolean supported = Build . VERSION . SDK_INT >= 16 ; while ( matcher . find ( ) ) { String unicode = _shortNameToUnicode . get ( matcher . group ( 1 ) ) ; if ( unicode == null ) { continue ; } if ( supported ) { input = input . replace ( matcher . group ( 1 ) , unicode ) ; } else if ( ! supported && removeIfUnsupported ) { input = input . replace ( matcher . group ( 1 ) , "" ) ; } } return input ; }
target:  Replace shortnames to unicode characters.