Benim dil karakterleri kaydedilemiyor

0 Cevap php

I am trying to save some data(name, last name) in my forms with php and mysql. It's simple form like:

 <input type='text' name='first_name' />

Ve php ile submiting sonra alır:

$first_name = trim(mysql_prep($_POST['first_name']));

The problem is, that if I type characters in my languege(lithuanian), it won't save them and will change into others.. I set the language of my country, also charset in mysql is UTF-8

Herhangi bir sorun fikir?

EDIT: The very strange thing just happened. It started working just after I deleted all the charset=utf8 and set names utf8 :) however, thanks to everyone

0 Cevap