Page 1 of 1

URL tag does not handle links with non alphanumeric

Posted: Thu Nov 05, 2009 3:32 pm
by tzor
characters.

This is especially important when dealing with wiki; spaces and quotes are common. Spaces might be difficult in general without allowing "" within the url code (as it the case for quote) but the use of single quote can prevent the url tag from parsing and will cause the auto parser to stop at the single quote as well.

Posted: Thu Nov 05, 2009 4:34 pm
by Zherog
This is a known bug/feature of the software. However, I think you can use hex codes to replace the offending characters. Let's see... (this was the first page I found on wikipedia with a paren; I got there from the random page and started clicking links.)

http://en.wikipedia.org/wiki/Episcopal_ ... ed_States)

Wikipedia page

Both of those should be broken.

http://en.wikipedia.org/wiki/Episcopal_ ... _States%29

Wikipedia page

Both of those should work. You can find an ASCII chart here. To encode it in a URL tag, find the hexadecimal number of the character you need and stick a percent sign in front of it. So, for example, ( becomes %28.

Posted: Fri Nov 06, 2009 5:25 am
by Crissa
Good point, Z.

Thanks!

-Crissa

Posted: Fri Nov 06, 2009 2:35 pm
by tzor
It's nice to know there is a workaround. Thank's Z!

Posted: Fri Nov 06, 2009 4:00 pm
by Zherog
This thread does remind me, also, that I've been meaning to hack the database to make the title field larger.

* makes a mental note for this weekend *