projects
/
scuttle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ce0bb5
)
The contents of mysql4 database must be stored in right utf-8.
author
Takuya Ono
<takuya-o@users.sourceforge.jp>
Tue, 14 Jun 2011 17:38:52 +0000
(
02:38
+0900)
committer
Takuya Ono
<takuya-o@users.sourceforge.jp>
Mon, 20 Jun 2011 08:05:20 +0000
(17:05 +0900)
see:
http://sourceforge.net/tracker/?func=detail&aid=
2215940
&group_id=134378&atid=729862
includes/db/mysql4.php
patch
|
blob
|
history
diff --git
a/includes/db/mysql4.php
b/includes/db/mysql4.php
index 063951816d23adb9c02a07722d450da0d02d390c..f074e19e76be93b649e37e2cc8950d9430833f19 100644
(file)
--- a/
includes/db/mysql4.php
+++ b/
includes/db/mysql4.php
@@
-44,6
+44,8
@@
class sql_db
{
if (@mysql_select_db($this->dbname))
{
+ #Set utf-8
+ mysql_query('SET CHARACTER SET utf8', $this->db_connect_id);
return $this->db_connect_id;
}
}
Benjamin Mako Hill
||
Want to submit a patch?