Gossamer Forum
Home : Products : Gossamer Links : Discussions :

strange characters in search results

Quote Reply
strange characters in search results
Hi Andy,
I have lots of strange characters printed on my site by a global!
Like
Code:
k�rperpflege
präpositionen
entwÃƒà ’Ã‚Â¼rfen


This is the code I'm using.
Code:
<%Plugins::ULTRAGlobals::Last_Searched_Words('10')%>
<%if search_logger_last_searched.length%>
<ul>
<%loop search_logger_last_searched%>
<li><a href="<%config.db_cgi_url%>/search.cgi?query=<%GT::CGI::escape($slog_query)%>"><small><%GT::CGI::html_escape($slog_query)%></small></a></li>
<%endloop%>
</ul>
<%else%>
No search terms yet
<%endif%>



Is it a german umlauts problem?
Do you know how to stop this from showing on my page?

Edit: When I'm using a searchword with umlauts like " " everything works fine.
Could it be a browser problem?
Here you can find my search page:
http://www.gpaed.de/...nterricht/search.cgi


Thanks

Matthias
gpaed.de

Last edited by:

Matthias70: Jul 10, 2011, 2:41 AM
Quote Reply
Re: [Matthias70] strange characters in search results In reply to
Hi,

Can you send me GLinks admin details, and I'll take a look. If its in the database, then not sure what there is you can do.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] strange characters in search results In reply to
As I expected, the DB is actually storing it as those "weird" queries. I expect its either someones browser being weird, or someone "trying" to attack your site (not sure what they are trying to achieve though)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] strange characters in search results In reply to
That looks like a utf8 encoded string displayed as iso-8859-1.

Adrian
Quote Reply
Re: [brewt] strange characters in search results In reply to
brewt wrote:
That looks like a utf8 encoded string displayed as iso-8859-1.

Thanks for your answer.
So what can I do against this?

Matthias
gpaed.de
Quote Reply
Re: [brewt] strange characters in search results In reply to
Ya. Its actually saved in the DB like that, whereas the other search queries also show up fine (i.e umlats etc) ... so as you said, it may well be that someone has their browser setup with the wrong encoding for some reason (so not a lot you can do for that, apart from the tweak in Search.pm that will stop it trying to log queries that don't contain a list of a-z , numbers, and accented charachters - which should help with the problem at least)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!