Changes for page Encoding

Last modified by Vincent Massol on 2020/06/25

From version 12.1
edited by Silvia Macovei
on 2010/03/03
Change comment: Document converted from syntax xwiki/1.0 to syntax xwiki/2.0
To version 12.2
edited by Silvia Macovei
on 2010/03/03
Change comment: Fixed Title; Added TOC

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +XWiki Character Encoding Configuration
Content
... ... @@ -1,8 +1,8 @@
1 -= XWiki Character Encoding Configuration =
1 +{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc/}}{{/box}}
2 2  
3 3  Here is below the configuration for UTF-8. Note that this is valid for XWiki 1.0 b5 and above. Easier configuration might be provided for upcoming releases.
4 4  
5 -== XWiki encoding ==
5 += XWiki encoding =
6 6  
7 7  Change the charset enconding in these XWiki files :
8 8  
... ... @@ -25,7 +25,7 @@
25 25  xwiki.encoding = UTF-8
26 26  {{/code}}
27 27  
28 -== HTML encoding ==
28 += HTML encoding =
29 29  
30 30  Change the HTML encoding in XWiki through Administration ~-~-> Preferences ~-~-> Presentation ~-~-> HTTP Meta information.
31 31  
... ... @@ -47,7 +47,7 @@
47 47  <meta http-equiv="Content-Type" content="text/html; charset=$!xwiki.encoding" />
48 48  {{/code}}
49 49  
50 -== Hibernate configuration ==
50 += Hibernate configuration =
51 51  
52 52  Add the following lines in the ##hibernate.cfg.xml## file:
53 53  
... ... @@ -56,7 +56,7 @@
56 56  <property name="connection.characterEncoding">UTF-8</property>
57 57  {{/code}}
58 58  
59 -== MySQL configuration ==
59 += MySQL configuration =
60 60  
61 61  It's common practice that the MySQL configuration file, in *nix systems is located in /etc/mysql/my.cnf
62 62  
... ... @@ -69,12 +69,10 @@
69 69  collation-server = utf8_general_ci
70 70  {{/code}}
71 71  
72 -== Servlet Container ==
72 += Servlet Container =
73 73  
74 -=== Jetty ===
74 +== Jetty ==
75 75  
76 -
77 -
78 78  {{code}}echo off
79 79  rem set LANG=fr_FR.ISO8859-1
80 80  set LANG=en_US.UTF-8
... ... @@ -90,7 +90,7 @@
90 90  
91 91  in server startup script.
92 92  
93 -=== Tomcat ===
91 +== Tomcat ==
94 94  
95 95  In order to enable UTF-8 in tomcat, you have to add
96 96  
... ... @@ -112,7 +112,7 @@
112 112  In case you're using AJP to connect Tomcat and httpd, make sure you add this attribute to the AJP connector.
113 113  {{/warning}}
114 114  
115 -=== [[Glassfish>>http://www.glassfish.org/]] ===
113 +== [[Glassfish>>http://www.glassfish.org/]] ==
116 116  
117 117  To run xwiki with UTF-8 in Glassfish you will need to recreate the xwiki-enterprise.war file and do a change to the glassfish config. First, in the Administration GUI under Domain => General => Locale enter en_US.UTF-8.
118 118  
... ... @@ -144,7 +144,7 @@
144 144  
145 145  Now you can deploy your new .war file to Glassfish and it will have all the changes in it and wll be correctly deployed.
146 146  
147 -== System config ==
145 += System config =
148 148  
149 149  Add the following variables to your system
150 150  

Get Connected