Page 1 of 1

Problem with unicode

Posted: Wed Aug 19, 2009 3:34 am
by saucony77
Hi,
I have a little search engine with 2 files:
- index.html
- process.php

On index.html, there are 2 fields: on the first, the user write an url; on the second, the user write some keywords to find on the site of the first field.

On process.php, I parse the url for find the keywords. Index.html and process.php are in utf-8 format.

If the site is utf-8.. everything works.
But if the site has an other encoding (ISO 8859-1/occidental), the keyword, often.. not found :cry:

How I can resolve it?
thanks!

Re: Problem with unicode

Posted: Wed Aug 19, 2009 4:04 am
by Mark Baker
Read the other sites charset, convert your keywords from UTF-8 to that charset, then do the search