I got error message when I run : php <cacti root>/poller.php
"File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file"
and I found someone has such suggestion for handling this error
Hi guys!
Here You are OVERALL solution for 4.1 that makes Your php (for example) code "crosshosted" i.e. it will not depend on MySQL server charset options (it's very useful when host admin is not available ) :
After connecting (@mysql_connect) and selecting (@mysql_select_db) a database You should make the following:
$set = @mysql_query ('SET NAMES CP1251');
$set = @mysql_query ('SET COLLATION_CONNECTION=CP1251_GENERAL_CI');
may be just first SET is enough even.
Can I suggest we put this set on in poller.php to make query handle UTF8 char based mysql 4.1x database properly ? thanks.
Force Character Set to Latin1
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 2 guests