Removing Unrecognizable Characters

2 views
Skip to first unread message

Mike Hoy

unread,
Dec 5, 2008, 3:20:59 PM12/5/08
to vim...@googlegroups.com
I'm copying text from our Vendor's websites and putting it in gvim.
The odd ball characters like trademarks and so forth show up as
perfect black squares. I need to remove these items anyway so I would
like a way to search for these black boxes and delete them. Is there
any way to automate the deletion of these unrecognized characters? I'm
using gvim on XP here at work.

--
Mike Hoy

Tony Mechelynck

unread,
Dec 5, 2008, 3:43:40 PM12/5/08
to vim...@googlegroups.com

Try using a different font, and making sure that your various encoding
settings are correct:

http://vim.wikia.org/wiki/Setting_the_font_in_the_GUI
http://vim.wikia.org/wiki/Working_with_Unicode

You ought then to see the trademark character as a small raised TM
digraph (or a circled R for a registered trademark), the copyright
character as a circled C, etc. Even the left- and right-slanting quotes
ought to look right then.

Vim currently does not allow to search for a range of codepoints more
than 257 units wide. (If your gvim is set up correctly except for the
font, hitting ga on "rectangles" for different characters will give
different results.)


Best regards,
Tony.
--
Women's Libbers are OK. I just wouldn't want my sister to marry one.

Mike Hoy

unread,
Dec 5, 2008, 4:32:23 PM12/5/08
to vim...@googlegroups.com
Ok thanks I will check into that.
--
Mike Hoy
Reply all
Reply to author
Forward
0 new messages