Umlaut-problem with wikilink-plugin

Creating and modifying plugins.
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Umlaut-problem with wikilink-plugin

Post by stm999999999 »

hello,

another problem with the wikilink-plugin:

I have a german blog with words with umlauts (is this the right english word?)

And I want to make a wikilink with ((Pfarrbüro)) to a static-page "Pfarrbüro". But it does not work, because s9y gives not "Pfarrbüro" to the wiki-plugin but Pfarrb& #252;ro (without the space, but I must make it here, because the forum will transfer it to ü and you will not see any difference)

so in line ~300

Code: Select all

$entry = serendipity_db_query("SELECT id, permalink FROM {$serendipity['dbPrefix']}staticpages WHERE headline = '" . serendipity_db_escape_string($ltitle) . "' ORDER BY timestamp DESC LIMIT 1", true, 'assoc');
makes a db-query:

Code: Select all

SELECT id, permalink FROM kirche_staticpages WHERE 
headline = 'Pfarrb& #252;ro' ORDER BY timestamp DESC LIMIT 1
and of course this cannot find a page with the headline Pfarrbüro :-(

Is there a way to fix this, so the wiki-plugin gets normal ü instead of & #252;?
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Once again, I'm stymied by languages. Sorry I can't help out more in this respect. It's on my list of things to learn.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I believe some other markup plugin transforms the "ü" into the HTML entity. Which markup plugins that you have installed could cause this? Does the HTml entity already exist in the serendipty_entries.body column?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

garvinhicking wrote:Hi!

I believe some other markup plugin transforms the "ü" into the HTML entity. Which markup plugins that you have installed could cause this?
I must figure this out, but i must be something like this. I take it at the first plugin place, now it works fine.
Ciao, Stephan
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

it is "textile" but I do not know why
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Damn. Textile is one of the most wicked plugins, because its code is butt-ugly and not maintained by other people. I think there is a much more recent version of it floating around, but harder to get up-to-date for us because it uses the polluted global namespace...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply