Import of txt fails on Mac displays unknown file format despite being UTF 8

rbiser's Avatar


11 May, 2013 05:03 AM

I am trying to import the tab delimited attatched UTF 8 formated txt file. However anki won't let me. I am using the english version on a mac.

  1. Support Staff 1 Posted by Damien Elmes on 11 May, 2013 05:17 AM

    Damien Elmes's Avatar

    The file is in UTF-16, not UTF-8. Please see

  2. 2 Posted by rbiser on 11 May, 2013 01:05 PM

    rbiser's Avatar

    Thank you, I had told TextEdit to save it as UTF-8 but you are right that it did not.

    I had already checked what you linked to and the forum discussion and it wasn't much help.

    This was the solution:


    > file -I {filename}
    to determine encoding
    and then
    > iconv -f utf-16le -t utf-8 file1.txt > file2.txt
    to force it to be utf-8

  3. Soren Bjornstad closed this discussion on 25 May, 2013 02:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac