- WACKER Group
-
Investor Relations
-
Products
-
Product Search
Find specific WACKER products for your applications:
-
Brand Names
Here you will find an overview of all WACKER trademarks.
-
Product Search
- Industries
- Press & Media
-
Careers
%@ page contentType="text/html; charset=UTF-8" %> <%@page import="java.net.*"%> <%@page import="java.util.*" %> <%@page import="java.text.*" %> <%@page import="com.wacker.gsasearch.*" %> <%@page import="com.wacker.web.wacacademy.*"%> <%@page import="com.wacker.ws.*"%> <%@ page import="net.sf.gsaapi.*" %> <%@page import="java.io.UnsupportedEncodingException" %> <%@page import="com.wacker.solrsearch.*" %> <%@page import="org.owasp.encoder.Encode" %> <%! /** * Recode a String to the given encoding. * * @param s String String to recode. * @return recoded String, if encoding is valid; unmodified String, * otherwise. */ private String recode(String s) { return recode(s, "ISO-8859-1", "UTF-8"); } /** * Recode a String from the source to the target encoding. * * @param s String String to recode. * @param sourceEncoding String encoding to use for decoding. * @param targetEncoding String encoding to use for encoding. * @return recoded String, if encoding is valid; unmodified String, * otherwise. */ private String recode(String s, String sourceEncoding, String targetEncoding) { String result = (s == null) ? "" : s; try { result = new String(result.getBytes(sourceEncoding), targetEncoding); } catch (UnsupportedEncodingException e) { // do nothing, as the given String will be returned unmodified. } return result; } %>