English 中文(简体)
或acle + java encoding problem
原标题:oracle + java encoding problem while insert

我在座。 不要 j或cle。

i 提供网络服务,将一些东西插入行文。 网络服务设在轴上。 a. d或cle

NLS_LANGUAGE    AMERICAN
NLS_TERRITORY   AMERICA
NLS_CHARACTERSET    ZHS16GBK

网上服务设在2008年窗户服务器上,但一面已经将该系统的本地化改为chinese。

现在,后面插入的数据存在编码问题,显示像吗?

jws案有GBK编码。 列入非行的数据在档案中难以编码[我们没有从RequestST读到]。

[edit] just one thing, its not feasible to change the whole DB to utf-8 as it has lots of table and data

[进一步编辑]使事情更加清楚

机器接收两个来源的数据。 基本上,它被用于向用户发送和接收短片/毫米。 该公司主要与GSM操作控制中心合作,所有编码都由GBK处理。 另一方面,机器还接受网站向用户发送短片/毫米的请求。 这里的编码由UTF-8处理。 如果网站希望向用户发送短片,则该网站将利用这一机器上的网络服务,将数据输入散射中[这里是]。 然后,窗户服务会不断检查行文,如果发现有任何新要求发送短片/毫米,则会发送短片/毫米,删除记录。

一切都在旧机器上工作,因为旧机器2003年有chinese窗。 我们升级为新的服务器,并安装了2008年服务器服务器的服务器服务器式。 现在数据在网络服务插入行文后被歪曲。

问题回答

• 向第八届联合国特别工作组报告。

我也建议选择UTF8作为数据库。

Beware though, since by default java uses UTF16 encoding. To set the default encoding used by java, use the file.encoding flag:

java - Dfile.encoding=UTF8 ......

我从未听说过ZHS16GBK的果园,但似乎得到 j的支持:





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签