<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to use UTF-8 encoding for Html Pages</title><link>https://answers.axonivy.com/questions/201/how-to-use-utf-8-encoding-for-html-pages</link><description>&lt;p&gt;What steps are necessary to use UTF-8 character encoding (charset) for the Html Pages (JSP)? This is useful to support more special characters and be more compatible with the Html Dialog (JSF) which is per default UTF-8 encoded.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/201/how-to-use-utf-8-encoding-for-html-pages" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 13 Dec 2013 09:57:14 -0500</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/201/how-to-use-utf-8-encoding-for-html-pages/202</link><description>&lt;p&gt;&lt;strong&gt;This answer is only working with Xpert.ivy 5.0 and higher.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Add the following code (filter which sets the caracter endocing to UTF-8) to your web.xml under webapps/ivy/WEB-INF (Designer and Server):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;filter&amp;gt;
    &amp;lt;filter-name&amp;gt;setCharacterEncodingFilter&amp;lt;/filter-name&amp;gt;
    &amp;lt;filter-class&amp;gt;org.apache.catalina.filters.SetCharacterEncodingFilter&amp;lt;/filter-class&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;encoding&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;UTF-8&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;async-supported&amp;gt;true&amp;lt;/async-supported&amp;gt;
&amp;lt;/filter&amp;gt;
&amp;lt;filter-mapping&amp;gt;
    &amp;lt;filter-name&amp;gt;setCharacterEncodingFilter&amp;lt;/filter-name&amp;gt;
    &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;
&amp;lt;/filter-mapping&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Add to all your jsp layouts/templates (under /Layouts/ in the cms) or to jsp pages in the webcontent the following code to the first line:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;%@page contentType="text/html; charset=UTF-8" %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also change the meta-inf html header to the right encoding:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;head&amp;gt;
  ...
  &amp;lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;
  ...
&amp;lt;/head&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt="layout adjusted to UTF8" src="http://answers.axonivy.com/upfiles/utf8Layout.PNG"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Warning: There is an issue #24706 with file upload (multipart form-data). This does only work for special characters (e.g. umlauts) from Xpert.ivy version 5.0.8 and higher&lt;/strong&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Fri, 13 Dec 2013 09:57:14 -0500</pubDate><guid>https://answers.axonivy.com/questions/201/how-to-use-utf-8-encoding-for-html-pages/202</guid></item></channel></rss>