[Pmwiki-users] Testing needed for accent characters in WikiWords and page names

Patrick R. Michaud pmichaud
Sat Jan 31 08:00:38 CST 2004


On Sat, Jan 31, 2004 at 03:36:03PM +0100, Christian Ridderstr?m wrote:
> On Sat, 31 Jan 2004, Patrick R. Michaud wrote:
> > I've been experimenting tonight with allowing accented characters (e.g.,
> > non-ASCII such as ? and ?) into WikiWords and I think I may have 
> > something that may work.  However, I need to have people test it and 
> > see if there are any major problems that result.
> 
> No problems here... only a surpise that a page with my name already 
> existed :-)

Well, I was using your name as a test case.  :-)

> > Also, this feature causes WikiStyles to no longer function correctly,
> > but this is fixable if it appears that accented page names are going
> > to work okay.
> 
> Is that just a matter of preventing '%' from appearing in the wiki-word?

No, the problem is that the accented characters in the links have to be
URL-encoded (i.e. "?" becomes "%f6"), and two or more such sequences
makes PmWiki think there's a WikiStyle embedded in the URL.  

This is actually a bug (somewhat significant, IMO) in all of the 
versions of PmWiki that support WikiStyles, but nobody's reported 
it until now.  For example, to refer to a file called "my_r?sum?.html" 
one would write a URI in the markup like
   http://example.com/path/my_r%e9sum%e9.html		# ? == %e9
but PmWiki thinks %e9sum% is a WikiStyle and removes it from the result.
I'm guessing not many people have created URIs with multiple %-escaped
sequences.  1/2 :-)

Anyway, I'm working on a fix now that will appear in the 0.6 release.
The fix will likely also solve the problems with WikiWords appearing
in WikiStyles (e.g., %WikiWord% and %color=#FF0000%).

Pm



More information about the pmwiki-users mailing list