0
1

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.

asked 13.12.2013 at 09:54

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

edited 22.11.2016 at 13:56

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


This answer is only working with Xpert.ivy 5.0 and higher.

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):

<filter>
    <filter-name>setCharacterEncodingFilter</filter-name>
    <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
    <init-param>
        <param-name>encoding</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
    <async-supported>true</async-supported>
</filter>
<filter-mapping>
    <filter-name>setCharacterEncodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

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:

<%@page contentType="text/html; charset=UTF-8" %>

Also change the meta-inf html header to the right encoding:

<head>
  ...
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  ...
</head>

layout adjusted to UTF8

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

link

answered 13.12.2013 at 09:57

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

edited 21.11.2016 at 14:26

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×11
×5
×3

Asked: 13.12.2013 at 09:54

Seen: 6,424 times

Last updated: 22.11.2016 at 13:56