# Change body encoding to iso-8859-1

**URL:** <https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787>\
**Category:** Help Hub\
**Created:** [February 21, 2022, 9:43am UTC](https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787 "2022-02-21T09:43:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jens](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jens](https://community.postman.com/u/jens)\
**Post date:** [February 21, 2022, 9:43am UTC](https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787/1 "2022-02-21T09:43:07Z")

</div>

I’m testing our API with Postman. Our server expects iso-8859-1 in the data. But when I send Swedish characters in the raw body it is sent in utf-8. Can I change this?

/Jens

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [February 21, 2022, 6:02pm UTC](https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787/2 "2022-02-21T18:02:07Z")

</div>

Hi @jens  
Try setting the content-type header to:

```auto
Content-Type: application/json; charset=utf-16

```

![image](https://us1.discourse-cdn.com/getpostman/original/2X/3/358875b6c9e9eed4c39b7155923ae0a10930a7b3.png)

---

<div class="post-metadata">

**Author:** ![jens](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jens](https://community.postman.com/u/jens)\
**Post date:** [February 22, 2022, 7:26am UTC](https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787/3 "2022-02-22T07:26:06Z")

</div>

Thank you, that is a good advise. And I tried it before posting. But it doesn’t work. Postman ignores that when it comes to the data stream being sent.

I used wireshark to examin the packets and when I send the character “ä” in the XML raw body with charset=utf-16 in the header it’s transferred as c3a4 which is utf-8 but when I send it from my application with utf-16 encoding on the stream it is correctly sent as 00e4 (utf-16).

---

<div class="post-metadata">

**Author:** ![jens](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jens](https://community.postman.com/u/jens)\
**Post date:** [February 22, 2022, 7:43am UTC](https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787/4 "2022-02-22T07:43:13Z")

</div>

Actually when I test further. I realize the problem is only appearing when I use charset ISO-8859-1. that is ignored by the postman client and utf-8 is used instead

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:55pm UTC](https://community.postman.com/t/change-body-encoding-to-iso-8859-1/32787/5 "2024-12-12T12:55:17Z")

</div>

Closed on December 12, 2024, 12:55pm UTC

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