private String decodeStr ( String str ) { try { return MimeUtility . decodeText ( str ) ; } catch ( UnsupportedEncodingException e ) { return str ; } }
Returns the decoded string in case it contains non us - ascii characters . Returns the same string if it doesn t or the passed value in case of an UnsupportedEncodingException .