how to display Chinese charactor in ASP.net

Hi Expert,

I have a word document which have both chinese and english sentence, how I can use it make a html file and display it in my ASP.net web site.

Thanks in advance.
LVL 1
dshi15Asked:
Who is Participating?
 
abelConnect With a Mentor Commented:
To make it an HTML file you can simply save it as HTML by using Word itself (Save As). Your ASP.NET page must be using the UTF-8 or UTF-16 character set (there are more possibilities, like Big5).  You can set this value in the Page directive on top of your ASPX page:

<%@ Page Language="C#" AutoEventWireup="true"
    CodeBehind="testPage.aspx.cs"
    ResponseEncoding="UTF-8"
    Inherits="testPage" %>
which enables you to use chinese characters. The editor of Visual Studio will automatically show you the chines text as well.
0
 
dshi15Author Commented:
Thank you very much for quick response, I will test in work tomorrow morning and let you know.


0
All Courses

From novice to tech pro — start learning today.