0

I am developing a .net windows application with oracle database. Our requirement is to replace "&#188" with ¼ (ascii 188) on UI and save in oracle table. But after replacing the value it is showing "reversed" question mark on UI and in the oracle table it storing as question mark when i am quering the table using pl/sql developer.

Can some some has dealt with this type of problem?

Thanks, H N MIshra

4

2 回答 2

0

ASCII 从 0 到 127。没有 ASCII 字符 188。有一个 Unicode 字符U+00BC= ¼,而 00BC 十六进制确实是 188 十进制。这就是答案的提示:使用 Unicode,那么很容易。幸运的是 .Net 已经使用了 Unicode,而在 Oracle 中这只是一个简单的设置。

于 2012-04-19T08:02:13.737 回答
0

似乎您的 Oracle 数据库设置的字符集不包含 ¼ 字符。(我假设您的意思是 Unicode 代码点 188,因为 ASCII 字符集也不包括 ¼。)

最有可能的是,您需要转换数据库的字符集。我推荐 AL32UTF8 (UTF-8),它支持完整的 Unicode 范围。

有一个描述字符集迁移的 Oracle 文档。

于 2012-04-19T09:17:25.447 回答