Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Strange chars in queries

Quote Reply
Strange chars in queries
Hi,

I have strange chars in queries. Something like http://www.domain.com/search.cgi?query=‚‚„ĂË�€Ą

This chars usually replace my local chars like č, ć, ž, đ, š

UnReal Network
Quote Reply
Re: [deadroot] Strange chars in queries In reply to
Hi,

It seems that your web server use utf8 as default charset.

Hope that helps

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Strange chars in queries In reply to
Yes, I guess that is the problem.

However, my whole page is in windows-1250. Also whole database. Problem with this queries is that they are coming from referral such are Google, Yahoo etc.

Now, is it possible to correct this. Maybe to change utf8 to windows-1250 or maybe should I change all my site (with database) to utf8?

Regards.

UnReal Network
Quote Reply
Re: [deadroot] Strange chars in queries In reply to
Hi,

First you should change the config of your web server to serve default characters as windows-1250. If that works, there is no need to do more.

For the conversion, I've a plugin for that but I am not sure anyone need.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Strange chars in queries In reply to
I'm on shared hosting so I don't belive my host admin would do that. Is it possible to change default charset just for one user on webserver?

Regards.

UnReal Network
Quote Reply
Re: [deadroot] Strange chars in queries In reply to
Hi,

You can do that by putting this settings in a .htaccess and upload it onto your web root.

cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Strange chars in queries In reply to
I presume you don't know what should I put in .htaccess?

UnReal Network
Quote Reply
Re: [deadroot] Strange chars in queries In reply to
Please just add the below line. I am sure if that override the server config.


AddDefaultCharset WINDOWNS-1250

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Strange chars in queries In reply to
Ok. Thanks. Will try.

UnReal Network
Quote Reply
Re: [deadroot] Strange chars in queries In reply to
Any success so far?
Quote Reply
Re: [katakombe] Strange chars in queries In reply to
Nope. Not really.

UnReal Network
Quote Reply
Re: [tandat] Strange chars in queries In reply to
tandat wrote:
Hi,

First you should change the config of your web server to serve default characters as windows-1250. If that works, there is no need to do more.

For the conversion, I've a plugin for that but I am not sure anyone need.

Cheers,

Making my server default charset to windows-1250 didn't help. It's because many of these search queries come from Google which use UTF-8. So, I'm interested in your plugin. How does it work?

Regards.

UnReal Network