1. TANG JUN
  2. PowerServer
  3. Friday, 2 December 2022 07:54 AM UTC

你好:

目前在应用使用中发现用了中文作为查询条件能正常检索到数据,但是在存储中文时,只能保存第1个字,比如键入 经理 2个字,系统提示保存成功,但是实际存入数据库的就 经 一个字。

经过多次测试,发现每次保存下来的是 键入中文内容的一半内容,键入6个中文字,保存下来3个这种。

麻烦看下如何解决这个问题?

谢谢。

 

TANG JUN Accepted Answer Pending Moderation
  1. Tuesday, 6 December 2022 00:28 AM UTC
  2. PowerServer
  3. # 1

用的DBPARM 参数如下:

SQLCA.DBParm = "ConnectString='DSN=APPEON;UID=appeon;PWD=fwefdwq',charset='cp936',DisableBind=1"

charset='cp936' 不管放还是不放都是同样效果,麻烦看下是否还需要其它设置?

急!谢谢。

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.