Solved

how to display Chinese charactor in ASP.net

Posted on 2009-05-05
2
660 Views
Last Modified: 2012-05-06
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.
0
Comment
Question by:dshi15
2 Comments
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24310370
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
 
LVL 1

Author Comment

by:dshi15
ID: 24310385
Thank you very much for quick response, I will test in work tomorrow morning and let you know.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now