PHP5 + Mysql 5 Turkish Character Settings
#1
Login SSH

Write :

pico /etc/my.cnf

or

nano /etc/my.cnf

Find :

[mysqld]

Under it Add :

default-character-set=latin5
default-collation=latin5_turkish_ci

Find :

[mysql.server]

Under it Add :

user=mysql
default-character-set=latin5

Find :

[mysql]

Under it Add :

default-character-set=latin5

Ctrl+X Save my.cnf

Please Restart Apache Server
Reply
#2
Login SSH
Write:
pico /etc/my.cnf
or
nano /etc/my.cnf
Find:
[mysqld]
Add after:
default-character-set=latin1
default-collation=latin1_turkish_ci
Find :
[mysql.server]
Add after:
user=mysql
default-character-set=latin1
Find :
[mysql]
Add after:
default-character-set=latin1
Ctrl+X Save my.cnf
Please Restart Apache Server


i think it will also work with thisway too. B-couse latin1 supports turkish special chars too...

by da way thx for info.

regards
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)