Closed (fixed)
Project:
Liquid Wiki Engine Project
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2007 at 16:05 UTC
Updated:
23 Feb 2007 at 08:01 UTC
It is not possible neither to link to nor to access directly by URL - wiki names containing swedish characters (åäöÅÄÖ).
The message I get is
Invalid Wiki ID You have specified an invalid wiki ID
Comments
Comment #1
saml commentedI noticed that the problem seems to be with the core path module in Drupal, which doesn't allow swedish characters in URL's. This is fixed in Drupal 5.0 so hopefully this problem will disappear when Liquid gets updated for 5.0.
Comment #2
sorenp commentedIt should work now.... Please reopen if not.
(Jag har testat det med lite svenska tecken hemma och det funkade fint... lool)
// Soren
Comment #3
saml commentedWow, nice! =)
(Ser man på!)
It is interesting that it works, because for nodes outside the wiki it still doesn't work.
On requesting a node outside the wiki, for which I've set a path containing swedish characters, Drupal rewrites the URL in the wrong way, and the node isn't found.
(Seem to be a charset issue, where it rewrites the URL with UTF-8 encoding when setting the path, but with latin1 on requesting it)
I reported this at: http://drupal.org/node/116675
Do you get the same result (for nodes outside the wiki)?
Comment #4
sorenp commentedThis is a problem that I made a Drupal Core patch for some time ago, but forgot to submit. Will do that soon.
I did however solve the problem for Liquid in the following way:
When a request is placed for /wiki/[id] where no patch exists, the default handler parses the id into a WikiId (WID)object. While parsing, latin1 strings are converted to UTF8. As soon as the WID has been parsed it redirects to the node that contains the wiki page. The drupal_goto function then fetches and returns the correct path alias in UTF8.
In the second request, the requested path alias exists and the actual node is fetched without any intervention from the wiki module.
// Soren
Comment #5
saml commentedOk, nice!
Looking forward to test your patch!
I suggest that you submit your patch in http://drupal.org/node/117373
Comment #6
(not verified) commented