Skip to content
 

Pixelpost 에서 한글 깨지는 문제 수정

PhotoBlog 로 사용되는 pixelpost 설치를 하면서 DB 이전하면서 이전에는 한글문자처리가 정상적으로 잘 되다가, 갑자기 글자가 깨져서 보여서 찾아보니깐 해결책이 있네요.

이제 시작하는 사진 취미이지만 재미있게 해보려고 합니다. :)

http://bit.ly/6QMMV0

[Solution]
1.Open includes/functions.php
2. Search “function start_mysql”, then you will find it at about Line 492.
3. go to the end of this function, add the following line:
mysql_query(”SET CHARACTER SET ‘utf8′”); //added by QmQ
4. save,upload and overwrite the old function.php file.

[Solution]1.Open includes/functions.php2. Search “function start_mysql”, then you will find it at about Line 492.3. go to the end of this function, add the following line:mysql_query(”SET CHARACTER SET ‘utf8′”); //added by QmQ4. save,upload and overwrite the old function.php file.

function start_mysql($config_file,$request_uri)
{
	global $pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass, $pixelpost_db_pixelpost;
	$dir = 'templates';
	if (!file_exists($dir ."/splash_page.html")) {
		$dir = '../templates';
	}

...

	if(!mysql_select_db($pixelpost_db_pixelpost)) {
		if($request_uri == 'admin') {
			header("Location: install.php?view=db_fix");
			exit;
		}else{
			show_splash("Select DB Error: ". mysql_error()." Cause #2",$dir);
		}
	}
	mysql_query("SET CHARACTER SET 'utf8'"); //added by QmQ <== Add this !!!
}

Leave a Reply