Hi,
On 30.04.2007, at 21:50, David Zhou wrote:
Is there a way to add a BOM marker to a UTF8 file created by Textmate?
Homesite on Windows doesn't seem to be reading files created by Textmate correctly as UTF8 -- I have a suspicion this may have something to do with the lack of a BOM marker in the beginning.
the BOM for UTF-8 is EF BB BF
One approach could be the following tmCommand:
Save:Nothing
Commands: T=$(cat) filename="$(CocoaDialog filesave --title 'Save UTF-8 with BOM')" [ -n "$filename" ] && echo -en "\357\273\277$T" > "$filename"
Input: Entire Document Output: Discard
Hans