[TxMt] Converting encoding using iconv as command
devlist at samuraicoder.net
Tue Jul 24 10:16:37 UTC 2007
I'm trying to use iconv to convert a Shift-JIS document to UTF-8.
It's successful in Terminal, but not so in TextMate.
The command I use in Terminal is:
iconv -f shift-jis -t utf-8 text1.txt>text2.txt
This converts the file successfully.
In TextMate, I set up a command, using:
iconv -f shift-jis -t utf-8 "$TM_FILEPATH"
in Command(s) field.
I set Save: Nothing
Output: Replace Document
Activation and Scope Selector are unset.
After using this command, I see a diamond-like character at the end
of each line.
Any help would be appreciated.
More information about the textmate