By: Sakit Atakishiyev user 09 Jun 2017 at 11:45 a.m. CDT

3 Responses
Sakit Atakishiyev gravatar
Hi everyone. `HttpService.convertEntityToString(byte[])` could not convert byte array to string correctly if this array contains non unicode character in this code developer convert byte array to string as below ```` if (responseBytes == null) { return null; } return new String(responseBytes); ```` because of this converted value differs from original one

By Aliaksandr Samuseu staff 09 Jun 2017 at 2:03 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Sakit. Could you elaborate a bit? Where does this code snippet belong to? How it's related to Gluu?

By Sakit Atakishiyev user 09 Jun 2017 at 4:01 p.m. CDT

Sakit Atakishiyev gravatar
Please check this [class](https://github.com/GluuFederation/oxAuth/blob/master/Server/src/main/java/org/xdi/oxauth/service/net/HttpService.java)

By Aliaksandr Samuseu staff 16 Jun 2017 at 10:02 a.m. CDT

Aliaksandr Samuseu gravatar
It was decided that this may be seen as enhancement, and ability to select charset [was added](https://github.com/GluuFederation/oxAuth/commit/c3e05f8017549711d21b19c27abafc6902974315) to the code. Most likely it will be delivered with CE 3.1. Thanks for your proposal, Sakit. Closing the ticket now.