Thursday 30 April 2015

Windows Convert Text File Encoding

Sometimes UTF-8 encoding just doesn't cut it for some developments and there is need for another type of encoding.

Found this problem working with portuguese language, the accentuation was all wrong.

You can do this with powershell.

Just run this in windows powershell

gc -en utf8 file_with_utf8.txt | Out-File -en unicode filewith_unicode.txt


Useful when the files are really big.

No comments:

Post a Comment