Delphi XE6 - 目标多字节代码页中不存在Unicode字符的映射

时间:2014-09-08 17:57:29

标签: string delphi unicode firebird

每当我想将数据写入firebird db时,我都会收到此异常错误:

  

No mapping for the Unicode character exists in the target multi-byte code page

我尝试将write-function中的字符串更改为UnicodeString,但我仍然遇到同样的错误。

我有2台电脑:

  • Delphi XE2,Intraweb 12(12.2.25)
  • Delphi XE6 with Intraweb 14(14.0.32)

在IW12 PC上一切正常,但我在IW14计算机上的应用程序中遇到了这些奇怪的问题。

我没有做任何特殊的字符串操作,只对数据库进行简单的读/写操作。

如果我理解正确,这是Delphi错误而不是intraweb。我怎么能让它消失?

这是一个不起作用的IBX ibTable的简单写例:

With ibTable Do begin
  Open;
Try
  Append;
  Post;   //  <<---  error when try to Post
Finally
  Close;
End;//Try

0 个答案:

没有答案