On 2010-03-23, Jonathan Kulp wrote:
> On Tue, Mar 23, 2010 at 8:32 PM, Gustavo Caicedo <[email protected]> wrote:
> > Not sure what you mean. I use vim.
> >
> > user:$ file /mnt/sda1/opus/1a_arriba-los-corazones.ly
> > /mnt/sda1/opus/1a_arriba-los-corazones.ly: ASCII text
> >
> > I guess it's set to ASCII. Is this the problem you're talking about?
> >
> 
> Yes. that's it. Open up your file in vim and do this command:
> 
> :set encoding=utf-8
> 
> Then save and exit. Then run the "file" command and see if it says
> "utf-8" instead of ASCII. Once it has UTF-8 encoding I predict your
> characters will appear correctly. When I do this, the file has to have
> a utf-8 character (á or ñ for example) in the file before it'll say
> utf-8 in the "file" command.

It might depend on what version of Vim you are using, but I usually
need to run

  :set fileencoding=utf-8

as well.  That, along with Jon's suggestion, should solve your
problem.

-Patrick


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to