# Convert ANSi (Win 1252) to UTF8 node-red-contrib-iconv

**URL:** https://discourse.nodered.org/t/convert-ansi-win-1252-to-utf8-node-red-contrib-iconv/19038
**Category:** General
**Created:** [11 December 2019 18:38 UTC](https://discourse.nodered.org/t/convert-ansi-win-1252-to-utf8-node-red-contrib-iconv/19038 "2019-12-11T18:38:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gadziokos](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gadziokos](https://discourse.nodered.org/u/gadziokos)
#### Post date: [11 December 2019 18:38 UTC](https://discourse.nodered.org/t/convert-ansi-win-1252-to-utf8-node-red-contrib-iconv/19038/1 "2019-12-11T18:38:49Z")

</div>

I have file on sftp server coded in ANSi (Win 1252, have letters like ą, ć ę etc.) I use SFTP node to connect. After that I use function and take data like this (msg.payload = Buffer.from(msg.payload.filedata, 'binary'). My next node is converter (contrib-iconv). In encoding box I have written cp1250 and doesnt work, it's only change letters for example ą, ć, ę etc. to ý. I would like to convert it to utf8 and then ą will be a, ę -\>e etc.
