English 中文(简体)
LAMP UTF-8错误地向MySQL数据库储蓄
原标题:LAMP UTF-8 saving incorrectly to MySQL Database

我将我的数据库从拉丁美洲1台转换为UTF8,并使用SphpPMyAdmin,你可以输入数据并正确显示数据。 然而,在PHP开发的网页上观看,并用我简单的CMS加以编辑,可以避免必须错误编码的特性。

我花了几个小时的时间进行研究,最后用这一法典来做:

mysql_query ("SET nature_set_results = utf8 , nature_set_client = utf8 , nature_set_linkion = utf8 , nature_set_server = utf8, “,$conn_products”;

当被置于非行行动之前,这个问题就正确了—— mar!

我做了一些进一步的研究,并且(我相信)找到了一种办法,使整个MySQL服务器永久化,但我想永久改变每个数据库,因为使用服务器的大多数网站是拉丁的,需要保持这种方式。

任何人能否向我指出正确的方向?

问题回答

不幸的是,如果客户不说明任何情况,你就无法按每个数据库进行,或者由客户申请或服务器确定。 您只得每届会一次,这样,就只能教授自己,让大家能够始终跟踪<条码>米斯克勒_塞卢_db()<条码>,该编码很可能有<条码>米斯克尔_克里(SET 不结盟运动ES utf8;(或你需要的任何特性)。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

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 ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签