ASP.Net应用程序中的中文字体 [英] Chinese font in ASP.Net application

查看:123
本文介绍了ASP.Net应用程序中的中文字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ASP.Net中开发一个网站,并通过应用程序输入中文单词,并使用Oracle作为后端.

我正在做以下事情来实现这一目标:

1.将nvarchar数据类型用于表的列.
2.还在母版页中添加了一个标签.
首先,我添加了一个属性charset = utf8
3.我已经在计算机上安装了中文字体.

从oracle我可以成功输入中文,但是从前端可以用这种格式将其存储为"????".

I m developing a website in ASP.Net and entering chinese words through application and using Oracle as a backend.

I m doing following things to achieve this:

1. Using nvarchar datatype for a column of a table.
2. Also in a master page added one tag.
in head i ve added one attribute, charset = utf8
3. I ve installed chinese font in my computer.

From oracle i can successfully enter chinese but from front end it is stored as ''????'' somewhat in this format.

推荐答案

它看起来像日语系统上未安装MUI,因此您会看到"???????"

在此处阅读有关它们的所有信息:多用户界面(MUI)语言包 [ ^ ]
It looks like, Japanese MUI is not installed on the system, hence you see ''????''

Read all about them here: Multiple User Interface (MUI) Language Packs[^]


设置环境变量为true

System.SetEnvironmentVariable("ORA_LITERAL_NCHAR","true");
set Environment varible to true

System.SetEnvironmentVariable("ORA_LITERAL_NCHAR","true");


这篇关于ASP.Net应用程序中的中文字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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