Solved

how to display Chinese charactor in ASP.net

Posted on 2009-05-05
2
663 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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