-2

我将在 ProcessMaker DynaForm 中绑定 Sql Server 数据库的下拉列表。我建立了连接并编写了查询。我的查询返回其中一些是波斯语的数据,因此下拉列表无法绑定,Chrome Inspector 显示错误:

意外的标记 ;

每当我更改返回数据不是 Perisan 语言的查询时,一切正常!

即使我编写了一个模拟查询,例如: Select 1, N'وحید',而没有引用任何表,每件事情也都很好!

如何配置 processmaker 以在下拉列表中显示波斯语数据?

更新

我找到了执行查询并获取返回数据的 php 类。这是返回的结果:

Array ( [0] => 1 [1] => ��� ����� ) 
Array ( [0] => 2 [1] => ��� �Ә��� ) 
Array ( [0] => 3 [1] => ��� ������� ) 
Array ( [0] => 4 [1] => ������ ) 
Array ( [0] => 5 [1] => ��� ͘�� )

我认为连接编码有一些问题,但我不知道如何解决它!

这是我与 sql server 详细信息的连接:

MSSQLStatement Object ( [conn:protected] => MSSQLConnection Object ( [database:MSSQLConnection:private] => MyDB [transactionOpcount:protected] => 0 [dblink:protected] => Resource id #18 [dsn:protected] => Array ( [database] => MyDB [encoding] => utf8 [hostspec] => MyInstanceName [password] => MyPassword [phptype] => mssql [port] => [protocol] => [socket] => [username] => MyUserName ) [flags:protected] => 0 [lastQuery] => select Id, Title From MyTable ) [resultSet:protected] => [updateCount:protected] => [warnings:protected] => Array ( ) [resultClass:protected] => [stmt:protected] => [limit:protected] => 0 [offset:protected] => 0 )
4

1 回答 1

-2

您是否在查询末尾添加分号?

如果您查看ProcessMaker 文档,它们表明在使用 SQL Server 时,不应添加分号:

于 2017-08-12T19:51:12.180 回答