Author Message
Joined: Nov 7, 2013
Messages: 11

We have an issue with ICConnector. We set/get EDU fields containing values with special national characters. The setting EDU field works fine. When we get the same EDU field, the special characters go wrong. We have analyzed the AIC integration components and found the followings:
- The AIC HTTPConnector sends the response with correct UTF-8 charaters, however there is no header for charset in the HTTP message. Here is the request/response TCP messages captured by Wireshark:
ICConnector get EDU request:

POST /httpvox.htm HTTP/1.1
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.8.0_152
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-type: application/x-www-form-urlencoded
Content-Length: 114


Response from AIC HTTPConnector:

HTTP/1.0 200 OK
Date: p?ntek, 14-jan.-22 13:06:42 GMT
Server: Avaya HTTP Channel
MIME-version: 1.0
Content-Type: text/html
Content-Length: 169

<count>4</count><loginid></loginid><test_field_1>árvízt?r? tükörfúrógép</test_field_1><sys_scripttimeout>600</sys_scripttimeout><returncode>SUCCESS</returncode>

- The problem starts here, the response seems wrong in ICConnector log, and the value is sent back to OD incorrectly:

14/01/2022 13:54:26:231 DEBUG - ICConnectorServer.httpRequest: url is:
14/01/2022 13:54:26:231 DEBUG - ICConnectorServer.httpRequest: posting:action=start_script&script=httpvox.iccmd&command=getedu&eduid=61e1727f000000000a0c5164234a0002&test_field_1=%22%22
14/01/2022 13:54:26:493 DEBUG - ICConnectorServer.httpRequest: response took:262ms for URL:
14/01/2022 13:54:26:493 DEBUG - ICConnectorServer.httpRequest: responseCode:200
14/01/2022 13:54:26:493 DEBUG - ICConnectorServer.httpRequest: response is:<count>4</count><loginid></loginid><test_field_1>??rv??zt??r?? t??k??rf??r??g??p</test_field_1><sys_scripttimeout>600</sys_scripttimeout><returncode>SUCCESS</returncode></body></html>
14/01/2022 13:54:26:493 DEBUG - ICConnectorManager.jobCompleted: Response back: responseType=getvdu.response&reqID=76-996&field="test_field_1"|"??rv??zt??r?? t??k??rf??r??g??p" for req: 76-996

AIC HTTPConnector

Joined: Nov 6, 2013
Messages: 3937
We do retreat the response as UTF-8 characters. The logger may not write the characters correctly. Have you been able to verify the problem by other means?
Joined: Nov 7, 2013
Messages: 11
You are right. The problem was with Tomcat JVM.
Adding -Dfile.encoding=UTF-8 Java option to Tomcat service script solved the problem.
Go to:   
Mobile view