Legacy Dev Forum Posts

 View Only

Sign Up

Problem to recognize UTF-8 characters through ApiClient Java

  • 1.  Problem to recognize UTF-8 characters through ApiClient Java

    Posted 06-05-2025 18:11

    ruben.berlanga | 2017-05-02 14:15:30 UTC | #1

    Hi there,

    I discovered a problem inside ApiClient in Java as when I execute any query, data returned from Purecloud goes well but ApiClient converts this information without specify charset to use. The result includes unrecognized characters (for example: "é" instead of "é").

    The problem is when method invokeAPIVerbose inside ApiClient class calls EntityUtils.toString(entity) this param should give us the possibility to add charset manually. An example: EntityUtils.toString(entity, "UTF-8").

    I want to know this forum can help me to modify Java SDK in next release.

    Thanks in advance.


    tim.smith | 2017-05-02 15:11:14 UTC | #2

    Thanks for reporting this. I've created API-2562 to track it. Should be an easy fix.


    tim.smith | 2017-05-02 17:19:24 UTC | #3

    Fixed in 7.1.1


    ruben.berlanga | 2017-05-03 07:42:13 UTC | #4

    Thanks a lot, but I'm not using platform-client-v2, I'm using platform-client with release version 0.55.4.135.

    Which are the differences between boths artifacts ID? Which of them is better and more stable?

    Thanks in advance.


    tim.smith | 2017-05-03 16:04:33 UTC | #5

    The pre-release SDK (the 0.x.x version) is deprecated and does not receive any updates. You need to use the latest version of the new SDK. Here's the notice about this change:

    https://developer.mypurecloud.com/forum/t/java-sdk-stable-release-1-0-0/1204


    ruben.berlanga | 2017-05-04 06:32:17 UTC | #6

    Thanks for the information. I didn't know it.


    system | 2017-08-28 19:34:18 UTC | #7


    This post was migrated from the old Developer Forum.

    ref: 1251