非英文[字符]在网站上不能正常显示
2015-09-26 18:05
573 查看
问题: 网站页面上不能正常显示非英文字符 ?
原因:
1> Wrong database collation or charset.
2.>The website files encode formats do not match with each other.
解决方案:
1>
Change your database collation or charset to
match with your site.
如何修改MSSQL 数据库的collation. In
order to successfully change the database collation you will need to set your database to a single-user mode, change the collation, and set it back to a multi-user mode.You
can copy, paste, and run the following T-SQL script to achieve this:
Replace
DatabaseName with your actual database name and CollationName with your target collation name.
The query result window will display the collation names of your databases before and after the execution of the query.
2.>Use
notepad++ to change your website files encode format to UTF-8, and add meta to declare your site to use UTF-8
原因:
1> Wrong database collation or charset.
2.>The website files encode formats do not match with each other.
解决方案:
1>
Change your database collation or charset to
match with your site.
如何修改MSSQL 数据库的collation. In
order to successfully change the database collation you will need to set your database to a single-user mode, change the collation, and set it back to a multi-user mode.You
can copy, paste, and run the following T-SQL script to achieve this:
SELECT name, collation_name FROM sys.databases; |
GO |
ALTER DATABASE [DatabaseName] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; |
GO |
ALTER DATABASE [DatabaseName] COLLATE CollationName; |
GO |
ALTER DATABASE [DatabaseName] SET MULTI_USER; |
GO |
SELECT name, collation_name FROM sys.databases; |
GO |
DatabaseName with your actual database name and CollationName with your target collation name.
The query result window will display the collation names of your databases before and after the execution of the query.
2.>Use
notepad++ to change your website files encode format to UTF-8, and add meta to declare your site to use UTF-8
相关文章推荐
- 用php代码限制国内IP访问我们网站
- 单服务器发布多网站的问题
- 从DRP架构进行简单工厂代替抽象工厂的SWOT分析
- kafka+storm+hbase架构设计
- discuz !NT 3.5 论坛整合 .net 网站用户登录,退出
- Discuz!NT3.6与网站整合(操作用户信息)解决方案
- Lvs+Keepalived+MySQL Cluster架设高可用负载均衡Mysql集群
- 国产InitPHP框架系列 - InitPHP框架搭建高可用WEB应用01:创建项目
- 软件设计师&产品经理应常去的网站
- 什么是Linux系统架构?
- Android 随想录之 Android 系统架构
- 用php代码限制国内IP访问我们网站
- 网站关键词优化--根据搜6索者意图划分类型
- HA架构之heartbeat安装配置详解
- 11 个最佳安全信息网站
- 小型企业的web架构搭建_2015092402
- 101电商平台高频实时访问架构
- 新网站
- WebForm总结Day02_模板引擎_网页三层架构
- C#三层架构总结