经典 ASP:如何在经典 ASP 中编写 unicode 字符串数据? [英] Classic ASP: How to write unicode string data in classic ASP?

查看:26
本文介绍了经典 ASP:如何在经典 ASP 中编写 unicode 字符串数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在经典 ASP 网页中显示存储 unicode 数据(使用 zawgyi1 字体输入)的 nvarchar 列?

How can I show an nvarchar column that stores unicode data (Entered with the zawgyi1 font) in a classic ASP web page?

当我检索值并将其写入页面时,它显示?????".我使用以下元标记将 ASP 页面的内容类型设置为 UTF-8:

When I retrieve and write the value to the page, it shows "?????". I set my ASP page's content type of UTF-8 with the following meta tag:

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">

不幸的是,文本仍然呈现为?????".

Unfortunately, the text is still rendered as "?????".

关于如何在经典 ASP 页面中显示 unicode 值的任何建议或想法?

Any suggestions or ideas on how to display unicode values in a classic ASP page?

推荐答案

页面顶部的代码页定义怎么样?

What about your codepage definition at the top of your page?

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>

这篇关于经典 ASP:如何在经典 ASP 中编写 unicode 字符串数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆