URL parameters encoding
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2007 11:59 AM
Hello,
The new URL addressability features allows us to access document through URLs like :
But if the document path contains accented characters, like "Espace Invité" in French, it seems the server does not understand utf-8 encoding for the path ("Espace%20Invit%C3%A9") like returned by the encodeURIComponent in JavaScript. Is it normal ?
The new URL addressability features allows us to access document through URLs like :
/alfresco/download/direct?path=/Company%20Home/My%20Home%20Space/myimage.jpg
But if the document path contains accented characters, like "Espace Invité" in French, it seems the server does not understand utf-8 encoding for the path ("Espace%20Invit%C3%A9") like returned by the encodeURIComponent in JavaScript. Is it normal ?
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 04:55 AM
Indeed we support the UTF-8 encoding for URL parameters - but the servlet container also needs support turned on to recognise the newer style of encoding on the URI (otherwise it defaults to ISO-8859-1), see this page on how to make the change:
http://confluence.atlassian.com/display/DOC/Configuring%20Tomcat%27s%20URI%20encoding
Thanks,
Kevin
http://confluence.atlassian.com/display/DOC/Configuring%20Tomcat%27s%20URI%20encoding
Thanks,
Kevin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2007 04:36 AM
Thanks Kevin, it's OK now.
I hope all other URL are UTF-8 compliant !

I hope all other URL are UTF-8 compliant !
