Search code examples
windowsutf-8batch-filecmdutf-16

UTF-16 to UTF-8 conversion (for scripting in Windows)


what is the best way to convert a UTF-16 files to UTF-8? I need to use this in a cmd script.


Solution

  • There is a GNU tool recode which you can also use on Windows. E.g.

    recode utf16..utf8 text.txt