Troubleshooting code page and character problems
If special or non-Western characters do not appear on your Web site as you expect them to, perform this task to track down the source of the problem.
Procedure
- In Content Manager Explorer, select the Administration tab and navigate to the Publication Target that contains the server you publish to.
- Check the value of Default Code Page:
- If it is set to System Default, check if your Content Manager server and your Presentation Server have different code pages. This is typically the case if your Presentation Server is UNIX-based. If the code pages are different, set your Default Code Page to the code page of your Presentation Server.
- If it is set to another value than System Default, confirm that this value is indeed the code page of your Presentation Server. If not, set it to the correct value.
- If your Default Code Page is now not set to System Default, ensure that all of the following are true:
- Your Component Template output contains the line
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - If you are publishing to a Java/JSP Web site, the directive
<%@ page language="java" contentType="text/html; charset=utf-8" encoding="utf-8"%>is at the top of every Web page. - If you are publishing to a .NET Web site, the directive
<%@ Page language="C#" ResponseEncoding="UTF-8"%>is at the top of every Web page. - If you are publishing to a .NET Web site, the
system.websection in theconfigurationsection of your site's web.config file contains the line<globalization fileEncoding="UTF-8" requestEncoding="UTF-8" responseEncoding="UTF-8" />
The samples above assume that the code page on your Presentation Server is UTF-8. If it is not, replace utf-8 and UTF-8 with the name of the code page on your Presentation Server throughout.
- Your Component Template output contains the line