# Change the enconding of responses (Official PHP API)

**URL:** <https://discuss.elastic.co/t/change-the-enconding-of-responses-official-php-api/106296>\
**Category:** Elasticsearch\
**Created:** [November 3, 2017, 10:41am UTC](https://discuss.elastic.co/t/change-the-enconding-of-responses-official-php-api/106296 "2017-11-03T10:41:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmp.juan](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jmp.juan](https://discuss.elastic.co/u/jmp.juan)\
**Post date:** [November 3, 2017, 10:41am UTC](https://discuss.elastic.co/t/change-the-enconding-of-responses-official-php-api/106296/1 "2017-11-03T10:41:22Z")

</div>

Hi all,

I know JSON's format is UTF-8 but I need to convert the responses retrieved from my application into an array only containing data in ISO-8859-1

Is there any way to do that natively (using the official API) or I need to parse the whole array of results?

Kind regards,

Juan.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 1, 2017, 10:41am UTC](https://discuss.elastic.co/t/change-the-enconding-of-responses-official-php-api/106296/2 "2017-12-01T10:41:28Z")

</div>

Closed on December 1, 2017, 10:41am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
