Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1039

Windows-1252 to UTF-8 encoding [closed]

$
0
0

I've copied certain files from a Windows machine to a Linux machine.
All the files encoded with Windows-1252 need to be converted toUTF-8.
The files which are already in UTF-8 should not be changed.

I'm planning to use the recodeutility for that.How can I specify that the recode utility should only convertwindows-1252 encoded files and not the UTF-8 files?

Example usage of recode:

recode windows-1252.. myfile.txt

This would convert myfile.txt from windows-1252 to UTF-8.Before doing this, I would like to know that myfile.txt is actuallywindows-1252 encoded and not UTF-8 encoded.
Otherwise, I believe this would corrupt the file.


Viewing all articles
Browse latest Browse all 1039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>