
If you don't know the existing encoding you could try file -i filename for Ubuntu or file -I filename for OSX which should provided metadata including encoding. It seems that iconv is also available in OSX. If for some reason you don't have it you can install it sudo apt-get install libc-bin You can confirm it's installed with the command which iconv the output will be the location of the program which in my case is /usr/bin/iconv Iconv is likely part of your default Ubuntu installation.

The encoding switch renders all my work useless. Id prefer if Sublime just removed offending characters rather than change the encoding as I must use the encoding I had first. Is derived from the current locale's character encoding. The big queston is why Sublime Text doesnt allow you to enforce or convert encodings easily in cases like that. If no from-encoding is given, the default is derived from the current


If no input files are given, or if it is given as aĭash (-), iconv reads from standard input. The iconv program reads in text in one encoding and outputs the text inĪnother encoding.
