database - Can't find the correct collation/charset for my form -
i've setup simple bootstrap page insert rows in db, can't db save in right format/charset.
i want support multiple languages since i'm saving beer names different countries, when set collation specific language on affected rows , submit letters charset, still doesn't save letters right.
here's table exported db:
create table if not exists `favorites` ( `fav_id` int(11) not null auto_increment, `user_id` varchar(55) character set utf8 collate utf8_danish_ci not null, `fk_beer_id` int(11) not null, `fav_comment` varchar(255) character set utf8 collate utf8_danish_ci default null, primary key (`fav_id`), key `fk_favbeer_beer` (`fk_beer_id`) ) engine=innodb default charset=utf8 auto_increment=7 ; i confused fact (in phpmyadmin) can set collations on both db, table , row.
where , collation right db?
edit:
it may because i'm using ajax send form:
i have following settings:
contenttype: "application/x-www-form-urlencoded; charset=utf-8",
solved it.
used utf8_decode in php file..
Comments
Post a Comment