Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Junzhi He
The garbled character of liferay 6.0.6 in Linux
June 12, 2012 12:30 PM

Junzhi He

Rank: New Member

Posts: 4

Join Date: May 1, 2012

Recent Posts

Hi, All
I have met a problem of grabled character with liferay-portal-tomcat-6.0.6-20110225. We have downloaded
And we install it in windows XP system as develop enviroment and in the linux system as server enviroment. In the Windows, all is ok. But in the linux system, there are probleme of grabled character for French Character, for example: è, à, ç.
Firstly, in all of the jsp page, we have added:
<?xml version="1.0" encoding="UTF-8"?>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<% request.setCharacterEncoding("UTF-8");%>
<% response.setCharacterEncoding("UTF-8");%>

Then, in the, I have point out:
locales=fr_CA, en_CA

At last, in the folder of tomcat-6.0.29/conf/, I have modified file of server.xml.
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keyAlias="***" keystoreFile="****" keystorePass="***" URIEncoding="UTF-8"/>

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />

This problem is very strange.Because in the Windows we use the same version, but it always work very well.And In the Linux, It works well when we get data from DB to liferay, but garbled characters appear when we pass data from the browser to tomcat and to DB.

Are there anyone who can give some suggestion?

Thanks a lot.
Hitoshi Ozawa
RE: The garbled character of liferay 6.0.6 in Linux
June 12, 2012 3:22 PM

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

I think you're not the first one to face this problem. I think the stance of is that liferay is using UTF8 so it should work perfectly in all countries/language without any problem period.