Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2004, 12:03 PM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp:button to display chinese characters

Hi
I want to use the button control but it does not allows to display chinese characters, is there a way to solve it?
<asp:Button runat="server" ID="btn" Text="#20013;#25991;#29256;"/>

If I use normal HTML button control, this works fine.
<input type="submit" value="#20013;#25991;#29256;"/>


 
Old December 19th, 2004, 12:58 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,
you should save your aspx file with Unicode characters,use save as and click the arrow next to save button,choose save with encoding to select a Unicode encoding.

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.
 
Old December 19th, 2004, 02:41 PM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed your suggestion but still I get the ??? as button label.
I also used
<meta http-equiv="Content-Type" content="text/html; charset=big5">

Also does not work.
I manually set the encoding page at web browser also displays "???"
But using the HTML button is ok.
Maybe I will just stick with normal HTML button.




 
Old January 14th, 2006, 09:47 PM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Looks like the & sign was missing, I tried this in asp.net page, it's working.

<asp:Button runat="server" ID="btn" Text="#20013;#25991;#29256;"/>

BTW, this post helped me on rendering Chinese character on a web page.
Thanks,
Jackie Liao

 
Old January 14th, 2006, 09:50 PM
Registered User
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean use
<asp:Button runat="server" ID="btn" Text="#20013;#25991;#29256;"/>

Quote:
quote:Originally posted by jackieliao
 Hi,
Looks like the & sign was missing, I tried this in asp.net page, it's working.

<asp:Button runat="server" ID="btn" Text="#20013;#25991;#29256;"/>

BTW, this post helped me on rendering Chinese character on a web page.
Thanks,
Jackie Liao






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chinese characters appearing in Access DB countrymusicman Access VBA 1 April 18th, 2007 10:55 AM
Mangling Chinese Characters in a combo box r_georg C++ Programming 1 February 1st, 2007 03:33 PM
Chinese characters rajanikrishna ASP.NET 1.0 and 1.1 Basics 1 April 25th, 2006 10:25 PM
Read XML having japanese and chinese characters mvvramesh XML 0 May 31st, 2004 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.