private static String translateEncoding ( final String encodingName ) throws UnsupportedEncodingException { try { String _encoding = encodingName . trim ( ) . toLowerCase ( ) ; String _encodingCode = theEncodingResource . getString ( _encoding ) ; return _encodingCode ; } // try catch ( MissingResourceException _exception ) { throw new UnsupportedEncodingException ( theMessageUnsupportedEncoding + encodingName ) ; } // catch(MissingResourceException _exception) catch ( Exception _exception ) { throw new UnsupportedEncodingException ( theMessageErrorTranslatingEncoding + encodingName ) ; } // catch (Exception _exception) }
Get the java encoding name from a standard encoding name .