Wednesday 27 April 2005 6:45:07 am
Hi folks, a bit off topic, but I hope that my post can save some time. I programmed a small application using php 4.3.x and mysql 4.1.1. I used the latin-1 charset. (Html, DB). A very simple programm, just take input from a textarea field and save it in the DB. After I finished the application, I did some testing. Problem: If I copied + pasted some text from a simple text editor to the browser and save it in the DB, strange chars appeared in the belonging table. My first thought was that I accidently used utf_encode / decode or a wrong charset ... but everything was okay. I searched many hours to find the problem. Finally I had the idea to upgrade mysql from 4.1.1 to 4.1.11.
Some upgrading notes: a) At windows, especially save your mysql-table, it will be overwritten (!) if you use the windows-installer. (Always make a complete backup + dump of all databases - of course.) Don't forget to save/backup your previous config-files (my.ini / my.cnf) too!
b) common pitfall: Mysql 4.1.x is using the new password system which is not supported by php 4.x. You will not get a connection with php unless you are writing this in your config: my.ini (windows) or my.cnf (linux):
[mysqld]
...
old_passwords
After upgrading everything worked fine, the problem disappeared. c) eZ is running fine with mysql 4.1.11 (so far ;-)
Best wishes,
Georg.
--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
|