How to write to a label control with Chinese Characters

  • Thread starter Thread starter Guest
  • Start date Start date
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>


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

Try Big5 for Chinese Traditional and GB2312 for Chinese Simplified

Charlie
 
Back
Top