Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to display Chinese charactor in ASP.net

Posted on 2009-05-05
2
Medium Priority
?
669 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

783 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