On 10/02/13 04:27, Ben Fritz wrote:
> On Saturday, February 9, 2013 8:51:28 PM UTC-6, ping wrote:
>> I've copied and pasted an article from web page and it looks I got a lot
>>
>> of following:
>>
>>
>>
>> �<80><99>
>>
>>
>>
>> so essentially it should be just a ' character, for example:
>>
>>
>>
>> If you�<80><99>ve
>>
>>
>>
>> is there a way to get them displayed/processed well?
>>
>>
>
> Figure out what encoding the text is supposed to be in, make sure your 'encoding' option can represent all the desired characters, and save/load the file in the correct 'fileencoding'.
>
> :help 'encoding'
> :help 'fileencoding'
> :help 'fileencodings'
> :help multibyte
> http://vim.wikia.com/wiki/Working_with_Unicode
>
>
Yes, ping, it looks like your file is in UTF-8 but your Vim is
interpreting it in Latin1 (and by Latin1 I mean as defined by ISO under
standard ISO-8859-1, not the similar but just ever so slightly different
encoding called Windows-1252, or on Windows "code page 1252" and which
on Microsoft machines is often confused with Latin1):
Encoding display (hex) (description)
Latin1 â 0xE2 small Latin letter a with circumflex
<80> 0x80 <control>
<99> 0x99 <control>
UTF-8 ' OxE2 0x80 0x99 U+2019 RIGHT SINGLE QUOTATION MARK
N.B. The two <control> characters are nonprinting (they have no display
equivalent in Latin1). They might be regarded as Alt-Ctrl-@ and
Alt-Ctrl-Y respectively.
So I recommend the same readings as Ben already did, especially the last
one.
Best regards,
Tony.
--
Don't worry about avoiding temptation -- as you grow older, it starts
avoiding you.
-- The Old Farmer's Almanac
--
--
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.
Sunday, February 10, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment