Solved

how to display Chinese charactor in ASP.net

Posted on 2009-05-05
2
659 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
Comment Utility
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
Comment Utility
Thank you very much for quick response, I will test in work tomorrow morning and let you know.


0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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