Last modified: 2005-12-01 19:23:42 UTC
Hallo! As long as Bugzilla does not have a "preview mode" (compare with https://bugzilla.mozilla.org/show_bug.cgi?id=40896 Bugzilla needs a "preview" mode) it would be great to render wiki links with UTF-8 characters the same way as in MediaWiki. request: wiki links as [[en:Timişoara]] should generate http://en.wikipedia.org/wiki/Timi%C5%9Foara [[yi:פּױלן]] should generate http://yi.wikipedia.org/wiki/%D7%A4%D6%BC%D7%B1%D7%9C%D7%9F etc. I assume that a change will fix the existing wiki links in all bugs from the database. Thanks in advance for fixing this! best regards reinhardt [[user:gangleri]]
> [[yi:פּױלן]] should generate > http://yi.wikipedia.org/wiki/%D7%A4%D6%BC%D7%B1%D7%9C%D7%9F I mean [[yi:פּױלן]] should generate http://en.wikipedia.org/wiki/yi:%D7%A4%D6%BC%D7%B1%D7%9C%D7%9F compare with Bug 4122: Interwiki links in MediaZilla all point to English Wikipedia
Adjusted the regex globals.pl hack: # **** Dirty hack! --brion $text =~ s~\[\[([a-zA-Z0-9_ ,./'()!#%:\x80-\xff-]+)\]\] ~($tmp = html_quote($1)) && ($things[$count++] = "<a href=\"http://en.wikipedia.org/wiki/$tmp\">[[$tmp]]</a>") && ("\0\0" . ($count-1) . "\0\0") ~egox; # **** end dirty hack Now works.
Thanks a lot Brion!