PHP:在网页中显示韩文文本 [英] PHP: Displaying Korean Text in a Webpage
本文介绍了PHP:在网页中显示韩文文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在网页上显示韩文文字。我一直在使用这些元标记和标题
How to display Korean Text in a webpage. i have been using these meta tags and headers
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="ko"/>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/>
ini_set('default_charset', 'UTF-8');
header('Content-Type: text/html;charset=utf-8');
但是没有任何效果..请帮助!!
But nothing works.. please help!!
注意:我一次尝试所有标签1不是一次。
NOTE: I tried every tag 1 at a time not all at once.
推荐答案
使用:
ini_set('default_charset', 'UTF-8');
header('Content-Type: text/html;charset=utf-8');
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
和请确保您的编辑器配置为使用UTF-8保存,并确保其他涉及的系统(例如数据库)被配置为使用utf-8。
and make sure your editor is configured to save using UTF-8, and make sure that any other systems involved (e.g. databases) are configured to use utf-8.
这篇关于PHP:在网页中显示韩文文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文