cancel
Showing results for 
Search instead for 
Did you mean: 

share wiki - Wrong (broken) character encoding in page

vasisualy
Champ on-the-rise
Champ on-the-rise
Hi All,
I'm using Alfresco 3.2r2

When I try to see detailed wiki page I got page with broken non-latin characters in the title and empty body.

I'm talking about wiki page like
http://hostname:8080/share/page/site/user/wiki-page?title=Non_Latin_test_--_%D0%94%D1%80%D1%83%D0%B3...

See picture below.
[img]http://img138.imageshack.us/img138/676/pic2z.png[/img]

Any ideas?

Thank you in advance.
7 REPLIES 7

vasisualy
Champ on-the-rise
Champ on-the-rise
I thin I found way around.
If you create wiki page with only latin symbols in the title you can use cyrillic symbols in the body. And it displays Ok.

Thus IMHO non-latin title causes bug.
[img]http://img638.imageshack.us/img638/6070/screenlh.png[/img]

Hope someone who know how to paste a bug report will do it.

mikeh
Star Contributor
Star Contributor
It's not a bug. You need to make sure your Tomcat configuration allows UTF-8 encoding. In conf/server.xml
    <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" />

Thanks,
Mike

vasisualy
Champ on-the-rise
Champ on-the-rise
Thank you mate.
I added proper settings and now I'm happy.

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" />

    <Connector port="1400" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8" />

jelena
Champ in-the-making
Champ in-the-making
I'm sorry that I bring old thread but I have a same problem with non latin signs and  settings from above in server.xml haven't solved my problem.

Do you have another idea?

Tnx

kevinr
Star Contributor
Star Contributor
Three things:
1. URIEncoding="UTF-8" in tomcat server.xml for the connector
2. UTF-8 database instance
3. ensure your my.ini for MySQL is using utf-8 for the client connection
[mysql]

default-character-set=utf8

Kev

jelena
Champ in-the-making
Champ in-the-making
It was database encoding problem.

I setted these in my.cnf and it worked:

[mysqld]
default-character-set=utf8
default-collation=utf8_bin
character-set-server=utf8
collation-server=utf8_bin
init-connect='SET NAMES utf8'

[client]
default-character-set=utf8

Thanks for help

kevinr
Star Contributor
Star Contributor
No problem!

Kev