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");