修复土耳其语字符集问题Html / PHP(iconv?) [英] Fix Turkish Charset Issue Html / PHP (iconv?)

查看:204
本文介绍了修复土耳其语字符集问题Html / PHP(iconv?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到麻烦显示土耳其字符,他们作为一个小问号出现在背景的html。



如何使用iconv解决这个问题?因为我认为这是最好的选择权?现在我的页面是utf-8编码的。



我需要支持像

这样的字符

ı$ b $


$ b


$ b

感谢

解决方案

使用

解决方案

  iconv(ISO-8859-1,UTF-8,$ text); 


i'm having troubles displaying turkish characters, they are appearing as the little question mark with the diamond in the background in html.

How can I use iconv to fix this? Since I think thats the best option right? Right now my page is utf-8 encoded.

I need to support characters like

ı ñ ş

aswell as be able to insert them into my db.

Thanks

解决方案

Solved it by using

iconv("ISO-8859-1", "UTF-8", $text);

这篇关于修复土耳其语字符集问题Html / PHP(iconv?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆