Problem with unicode
Posted: Wed Aug 19, 2009 3:34 am
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
How I can resolve it?
thanks!
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
How I can resolve it?
thanks!