PDA

View Full Version : utf8 client encoding


leeflee
10-31-2006, 12:25 PM
I've just installed webcollab and unfortunatly I cannot sign in, as it comes up with the following

Database error
Not able to set utf8 client encoding

Any suggestions?

Thanks,

Sandman
11-01-2006, 06:24 PM
Humm,,

What's the code look like?

Does it indicate in the header and/or body of your document the character set?

<?php header("Content-type: text/html; charset=utf-8");?>

It may be server side also check with your web host. ;)

asimpson
11-12-2006, 02:26 AM
You need to have MySQL 4.1.3, or better.

For earlier versions of MySQL you need to use the earlier WebCollab 1.81.

The error is caused when PHP tries to set the database encoding on MySQL to UTF-8 (WebCollab uses a UTF-8 backend on the database). The web pages are generally in ISO-8859-xx (to suit the language in use) or also UTF-8.