编程语言

img fangsky

如何让不同的语言版本显示正确的中文?

发表于2004/10/14 12:07:00  499人阅读

<html>
<head>
<title>字符转化</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="95%" border="1" cellspacing="0" cellpadding="4" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF">
  <tr>
    <td>在相应的文本框里输入需要转换的字符.</td>
  </tr>
  <tr>
    <td>转为真正的英文:<br>
      <iframe src="translate_language.asp?language=iso-8859-1" noresize scrolling="yes" frameborder="0" width="100%" height="160" hspace="0" vspace="0" marginheight="0"></iframe>
    </td>
  </tr>
  <tr>
    <td>转为真正的日文:<br>
      <iframe src="translate_language.asp?language=iso-2022-jp" noresize scrolling="yes" frameborder="0" width="100%" height="160" hspace="0" vspace="0" marginheight="0"></iframe>
    </td>
  </tr>
  <tr>
    <td>转为真正的韩文:<br>
      <iframe src="translate_language.asp?language=euc-kr" noresize scrolling="yes" frameborder="0" width="100%" height="160" hspace="0" vspace="0" marginheight="0"></iframe>
    </td>
  </tr>
  <tr>
    <td>轉為真正的繁體中文:<br>
      <iframe src="translate_language.asp?language=big5" noresize scrolling="yes" frameborder="0" width="100%" height="160" hspace="0" vspace="0" marginheight="0"></iframe>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
translate_language.asp

<%language=Request.QueryString("language")%>
<html>
<head>
<title>Send Char</title>
<meta http-equiv="content-type" content="text/html; charset=<%=language%>">
</head>

<body bgcolor="#FFFFFF" text="#000000">
  <table width="90%" border="0" cellspacing="0" cellpadding="2" align="center">
  <form name="frm_Language" method="post" action="translate_ok.asp">
    <tr>
      <td>
        <textarea name="keyword" rows="6" cols="50"></textarea>
        <input type="hidden" name="language" value="<%=language%>">
        <input type="submit" name="btnSend" value="Translate" style="width:80px;height:25px">
      </td>
    </tr>
  </form>
  </table>

<table width="90%" border="0" cellspacing="0" cellpadding="2" align="center">
  <tr>
    <td><b><font color="#FF0000">Notice:</font></b></td>
  </tr>
  <tr>
    <td>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;
      charset=<%=language%>&quot;&gt;</td>
  </tr>
</table>
</body>
</html>

阅读全文
0 0

相关文章推荐

img
取 消
img