📄 i18n.java
字号:
//// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .//package org.jahia.utils;import javax.servlet.*;import javax.servlet.http.*;/** * * @author Khue Nguyen */public class I18n { /** * Convert a request parameter value to java unicode string */ public static String getText(HttpServletRequest request, String paramName ) { if ( paramName == null ) return null; String value = request.getParameter(paramName); if ( value == null ) return null; try{ value = new String(value.getBytes(), request.getCharacterEncoding()); }catch(java.io.UnsupportedEncodingException ex){ System.err.println(ex); }catch ( NullPointerException nex ){ System.err.println(nex); } return value; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -