Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cec986a

Browse files
Update class.DBPDO.php
add utf8 support
1 parent 1e3869a commit cec986a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎class.DBPDO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function prep_query($query){
1919
function connect(){
2020
if(!$this->pdo){
2121

22-
$dsn = 'mysql:dbname=' . DATABASE_NAME . ';host=' . DATABASE_HOST;
22+
$dsn = 'mysql:dbname=' . DATABASE_NAME . ';host=' . DATABASE_HOST.';charset=utf8';
2323
$user = DATABASE_USER;
2424
$password = DATABASE_PASS;
2525

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /