collation utf8 and content="text/html; charset=utf-8"
Posted by: Pedro Han
Date: June 01, 2005 09:43PM

Dear Sirs,

I want to have multilingual web pages with utf8.

My system is;

fedora 3 and xp sp2
and apm versions are apache 2.0.53, php 4.3.11, mysql 4.1.12

and wrote my.cnf as;

[mysqld]
port = 3306
socket = mysql
skip-locking
init_connect='SET collation_connection = utf8_general_ci'
init_connect='SET NAMES utf8'
default-character-set=utf8
character-set-server = utf8
collation-server = utf8_general_ci

in httpd.conf
AddDefaultCharset utf-8

in php.ini
default_charset ="utf-8"


At phpmyadmin, I can see my datas with Korean language.

But, the under-stated php does not show Korean languae. This means characters are broken -- ??? etc.

However at the internet explorer, source view function shows the datas in Korean langauge.

-- test.php ---

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>관리자 > 기본환경설정</title>
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<table cellpadding=0 cellspacing=1 border=0>
<tr>
<td height=43 width=80 align=center><table width="100%" height="100%" cellpadding=0 cellspacing=0><tr><td align="center" background="./img/top_back.gif" bgcolor="#E68484"><a href="./m100_index.php" target="_parent" style="text-decoration:none;"><font style="font-family:돋움; font-size:9pt; color:white;"><b>환경설정</b></font></a></td></tr></table></td><td height=43 width=80 align=center><table width="100%" height="100%" cellpadding=0 cellspacing=0><tr><td align="center" background="./img/top_back.gif" bgcolor="#F1A683"><a href="./m200_index.php" target="_parent" style="text-decoration:none;"><font style="font-family:돋움; font-size:9pt; color:white;"><b>회원관리</b></font></a></td></tr></table></td><td height=43 width=80 align=center><table width="100%" height="100%" cellpadding=0 cellspacing=0><tr><td align="center" background="./img/top_back.gif" bgcolor="#EBC95F"><a href="./m300_index.php" target="_parent" style="text-decoration:none;"><font style="font-family:돋움; font-size:9pt; color:white;"><b>게시판관리</b></font></a></td></tr></table></td></tr>
</table><br>

and data is ??? as follows;

<td><u><a href='javascript:;' onClick="showSideView(this, 'lghdr65', '???', 'bGdoZHI2NUBkbWNhdGhvbGljLm9yZw==', 'http://lerteh5@hanmail.');"; title='[lghdr65]???'><span class='member'>???</span></a></u></td>
<td><select name='mb_level[2]' ><option value='1'>1</option><option value='2' selected>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option></select></td>
<td align=right><a href='point_list.php?sfl=a.mb_id&stx=lghdr65' class=tt>0</a>&nbsp;</td>


Any of your comment would be highly appreciated.





Edited 1 times. Last edit at 06/01/05 11:44PM by Pedro Han.



Edited 2 times. Last edit at 06/01/05 11:46PM by Pedro Han.



Edited 3 time(s). Last edit at 06/01/2005 10:58PM by Pedro Han.

Options: ReplyQuote


Subject
Views
Written By
Posted
collation utf8 and content="text/html; charset=utf-8"
6960
June 01, 2005 09:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.