Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to open an .nfo file correctly with the mac terminal (eventually with iTerm2) .

I've tried it already with vim:

vim file.nfo
:set encoding=cp437

But it has not helped. Maybe there are other tools? May be something in the Brew repository?

share|improve this question
How about nano file.nfo ? or is the encoding not working? – FLY Feb 12 '13 at 14:59
nano didn't helped too. I'm starting to think that there is some strange encoding. – Igor Konoplyanko Feb 12 '13 at 15:15

Your question is a bit ambiguous because you don't explicitly state what vim is or is not doing. A .nfo file is just a text file. Vim should be able to correctly handle Unicode encoded text files. If it is a codepage issue then this question on Stack Overflow should explain things: How can I detect the encoding/codepage of a text file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.