# Convert windows encoding to UTF-8

**URL:** <https://forum.kirupa.com/t/convert-windows-encoding-to-utf-8/287755>\
**Category:** web dev\
**Created:** [May 5, 2009, 10:05pm UTC](https://forum.kirupa.com/t/convert-windows-encoding-to-utf-8/287755 "2009-05-05T22:05:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [May 5, 2009, 10:05pm UTC](https://forum.kirupa.com/t/convert-windows-encoding-to-utf-8/287755/1 "2009-05-05T22:05:41Z")

</div>

Is there a way (with JS - no server-side stuff) to convert a windows encoding (e.g., windows-1252) to UTF-8?

I’m developing a small script that reads and displays some parsed text from an .html generated from Microsoft Word. The user, however, can save the .html in any number of encodings, but the default is windows-1252. I need a consistent encoding (UTF-8 is best, I’m assuming?).
