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

1월 13th, 2010 Permalink

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

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 !!!
}

Related posts:

워드캠프 WordCamp 서울 2010
Google Buzz 에 connected site 추가하기.
WordPress (워드프레스)에서 줄바꿈 없어지는 문제 해결 : TinyMCE Advanced
Google wave 초대장 드립니다.

Popularity: 3% [?]

No related posts.

Leave a Reply

blog comments powered by Disqus

Switch to our mobile site

This site is protected by WP-CopyRightPro