I have set php-mysql-apache to work on latin1 but when doing back-ups my character-set client is still utf8 -


yes, know think, moment decided go latin1.

this mysql config: • mysql> show variables 'character_set_%';
• +--------------------------+--------+
• | variable_name | value |
• +--------------------------+--------+
• | character_set_client | latin1 |
• | character_set_connection | latin1 |
• | character_set_database | latin1 |
• | character_set_results | latin1 |
• | character_set_server | latin1 |
• | character_set_system | utf8 |> impossible change since default system parameter.

for php use following commands @ php.ini:
mssql.charset = "iso-8859-1"

for apache usual:
adddefaultcharset iso-8859-1

with everytime following added each table:
/*!40101 set @saved_cs_client = @@character_set_client /;
/
!40101 set character_set_client = utf8 */;

why character_set_client still in utf8 connections between apache/php , mysql?

mysqldump doesn't @ php or apache settings. you'll need add --default-character-set flag when using mysqldump.

from manual:

--default-character-set=charset_name

use charset_name default character set. see section 9.5, “character set configuration”. if no character set specified, mysqldump uses utf8, , earlier versions use latin1.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -