如何转换这些奇怪的字符?(ë, Ã, ì, ù, Ã) [英] How to convert these strange characters? (ë, Ã, ì, ù, Ã)

查看:19
本文介绍了如何转换这些奇怪的字符?(ë, Ã, ì, ù, Ã)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页面经常显示 ë, Ã, ì, ù, à 代替正常字符.

My page often shows things like ë, Ã, ì, ù, à in place of normal characters.

我使用 utf8 作为标题页和 MySQL 编码.这是怎么发生的?

I use utf8 for header page and MySQL encode. How does this happen?

推荐答案

这些是 utf-8 编码的字符.使用 utf8_decode() 将它们转换为正常的 ISO-8859-1 字符.

These are utf-8 encoded characters. Use utf8_decode() to convert them to normal ISO-8859-1 characters.

这篇关于如何转换这些奇怪的字符?(ë, Ã, ì, ù, Ã)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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