English 中文(简体)
一切都在图8中,但正文是正确录制的纸质,以折中。
原标题:Everything is in utf8, but text isn t recording correctly to db anyway

I ve created a database (with utf8 charset) and a table with the same charset, all the rows are utf8, in webpage I have meta tag for utf8... But anyway, when I type in my forms smth not in latin alphabet, it registers in db wth eg. фывфыРHave I missed something?

最佳回答

在连接数据基之后使用这种代码,但供您检索/填写数据。

$db->query( set character_set_client=utf8 );
$db->query( set character_set_connection=utf8 );
$db->query( set character_set_results=utf8 );
$db->query( set character_set_server=utf8 );
问题回答

暂无回答




相关问题
Message charset

How do I get the charset from javax.mail.Message object?

Adding "charset" to all ASP.NET MVC HTTP responses

Is there an easy way to specify all "normal" views is an ASP.NET MVC app are to have charset=utf-8 appended to the Content-Type? View() lacks an override that allows you to specify the Content-Type, ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Special characters are not supported

I am having problem to display the special characters like ’, é in Firefox and IE. But these characters are supported for the local server. I have used the following <!DOCTYPE html PUBLIC "-...

找到一份所有编码的一览表。

我正在撰写一篇文章,试图将 by铁丝带入第2.6条的许多不同的编码。 是否有办法获得一份清单,列出我可以重复的可用编码?

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

What text encoding to use?

I need to setup my PostgreSQL DB s text encoding to handle non-American English characters that you d find showing up in languages such as German, Spanish, and French. What character encoding should ...

Flash coding problem

I got some information in my Flash application from a php script. Flash displayed it as: Radioart=Mia Frejman - Ett hjärta - Ett Hjärta The string contain some Swedish symbols. How I can output ...

热门标签