By default the encoding is latin1 but you could try to workaround your code.
To change the encoding in your queries, you have to add the following lines after the dbase connection line in your code:
mysql_query(mysql,"SET NAMES 'utf8'"); /* note the apostrophes: 'utf8' */
mysql_query(mysql,"SET CHARACTER SET utf8"); /* no apostrohes */
Please, for more information check the mysql manual (http://www.mysql.org).
- 1 Users Found This Useful
Oscommerce is showing a blank page in the categories pages
If you made no changes in your account or oscommerce script and this happened suddenly then there...I have the register_globals disabled server wide, how can i enable it in my account?
This option is available in all our shared cPanel hosting accounts.Please note if your script is...How could i change the PHP encoding in my scripts?
You could try changing it sending the headers in your php code, i.e.: header('Vary:...How do i parse .html files as .shtml (SSI)?
You can add the following line in your .htaccess file: AddHandler server-parsed .html or...How do I change timezone for PHP?
If you are a web developer or a webmaster working on different hosting accounts or servers, each...