Monday, February 18, 2013

RE: Copying text from wikipedia yields: lots of ???

Daniel M. Eldridge wrote:
> Humm...I was missing the encoding=utf-8 line but now--so now
> problem has not been solved.
>
> Now, instead of ???? marks I get solid blocks--the size of a
> character.

You need a font which supports the characters you are looking at.

DejaVu Sans Mono is an example of a great and free font:
http://dejavu-fonts.org/wiki/Main_Page

There will still be lots of characters that are not supported by
a particular font.

Put the cursor on one of the solid-block characters and type ga
to see its hex (and decimal) code. You can also type g8 to see
the bytes used to represent that character in UTF-8. There will
be a page somewhere with a list of typical Unicode characters
and their hex codes, and you can copy/paste some into Vim to
confirm that you are getting the text, and that your problem is
therefore the font.

John

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: