In my tests, QS converts the file to UTF-16 when appending Unicode characters to a text file using the Append To... action. Try converting from UTF-16 instead of from MacRoman when using iconv.
(For those who are interested, QS appeared to leave the original encoding alone when appending standard ASCII characters. It apparently changes the encoding to UTF-16 only when dealing with non-ASCII characters.) On Dec 30, 8:43 am, msson <[email protected]> wrote: > I'm having some trouble making a shell script work properly due to the > fact that QS only wants to output text in MacRoman instead of UTF-8. I > want to add a string to the end of a txt file and the file needs to be > encoded with UTF-8. So every time I add some text (with non ascii > chars) via QS it either changes the encoding of the txt file or enters > a bunch of mumbo-jumbo. > > I've tried using the iconv command to convert the encoding but nothing > seems to work. Is there some way to change the output encoding of QS > or a better way converting the encoding than iconv? > > Best regards, msson.
