How to write to a label control with Chinese Characters

G

Guest

Any idea how to make this work? Currently the text comes out as ?? It should
be the Chinese Characters.
===========================================
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<script language="VB" runat="server">
sub page_load(obj as object, e as eventargs)
dim testString as string
testString = "馬 馬"
lbTest.text = testString
end sub
</script>
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form runat="server">
<asp:label
ID="lbTest"
Text="Fill this in"
runat="server">
</asp:label>
</form>
</body>
</html>


===========================================
 
C

Charlie

I don't think iso-8859-1 is a Chinese Charset.

Try Big5 for Chinese Traditional and GB2312 for Chinese Simplified

Charlie
 
M

Martin Knopp

Why not go for some Unicode charset. I think UTF-8 should be a good choice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top