【问题标题】:Character encoding on Windows 7 with MSSQL使用 MSSQL 在 Windows 7 上进行字符编码
【发布时间】:2012-06-02 15:48:08
【问题描述】:

之前我在 Delphi 7 中开发了一个连接到 MSSQL 服务器的应用程序。
在 Windows 7 上,某些字符(ő, ű) 是错误的,它会显示 ou
MSSQL的整理好,客户端的区域设置好(包括非unicode程序的设置)。
我使用 UniDAC 组件进行数据库连接。

我认为程序无法正确读取区域设置(我不知道为什么,可能是因为不推荐使用的 windows API)并且组件将字符编码设置为默认值。

谁能帮我解决这个问题。有没有办法手动设置连接的字符编码?

【问题讨论】:

    标签: sql-server delphi windows-7 character-encoding


    【解决方案1】:

    问题在于 Delphi 7 不支持 unicode。

    您需要使用支持 Unicode 的 Delphi 版本(Delphi 2009)默认使用它们。

    见:Working with Unicode strings in Delphi 7
    寻求帮助,但我怀疑您的 Delphi-7 数据库驱动程序是否支持宽字符串。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-01
      • 2011-02-02
      • 1970-01-01
      • 2011-07-02
      • 2011-09-21
      • 1970-01-01
      • 2015-12-28
      相关资源
      最近更新 更多