cancel
Showing results for 
Search instead for 
Did you mean: 

Accent in myspaces webscript

laurent1050
Champ in-the-making
Champ in-the-making
Hi all,

I'm testing the webscript http://.../alfresco/service/ui/myspaces that propose a new front to Alfresco.
No problems on my Windows server, but not the same on the RedHat one …

I've a problem with url encoding. If my folders have accents, the web script engine doesn't recognize them.

For example, the url :
http://.../alfresco/service/ui/myspaces?f=1&p=/Espace racine/Sites/serviss/documentLibrary/A ACTUALITES/01-Sécurité
is transformed (in both IE6 and FF3) in
http://.../alfresco/service/ui/myspaces?f=1&p=%2FEspace%20racine%2FSites%2Fserviss%2FdocumentLibrary...
And if I try to show the url in the user view :
${args.p} –> /Espace racine/Sites/serviss/documentLibrary/A ACTUALITES/01-Sécurité

And finally, companyhome.childByNamePath[path[(chLen+2)..]]?exists is false

Does someone have a solution to encode my url or to configure my server correctly ?

Thanks,
Laurent

———————-

I've found a post with the same problem, but without solution :
http://forums.alfresco.com/en/viewtopic.php?f=36&t=26712&p=86977

I'm using Alfresco 3.3 on a RedHat server with Tomcat 6
Tomcat use UTF-8 encoding
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
   connectionTimeout="20000"
   redirectPort="8443" />
Server locale is fr_FR.UTF-8
[root@RDL6V041 ~]# locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
You using MySQL? I assume you have created your DB as utf-8 charset and also your client connection is set to utf-8 in your my.ini?

Kev

laurent1050
Champ in-the-making
Champ in-the-making
Wrong  :wink: I'm using PostgreSQL.

Here are some variables I can see in phpPgAdmin
client_encoding = UTF8 
lc_collate = fr_FR.UTF-8
lc_ctype = fr_FR.UTF-8
lc_messages = fr_FR.UTF-8
lc_monetary = fr_FR.UTF-8
lc_numeric = fr_FR.UTF-8
lc_time = fr_FR.UTF-8
server_encoding = UTF8
I also have a Apache Server before Tomcat :
AddLanguage en .en
AddLanguage fr .fr
LanguagePriority fr en
ForceLanguagePriority Prefer Fallback
AddDefaultCharset UTF-8
Any other idea ?

Thanks,
Laurent
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.