Hi,
Charles E Campbell Jr said on 12/07/2006 02:51 PM:
> Guido Van Hoecke wrote:
>
>> Hi,
>>
>> I recently started using Dr.Chips Manpageviewer
>> http://vim.sourceforge.net/scripts/script.php?script_id=489
>> http://mysite.verizon.net/astronaut/vim/vbafiles/manpageview.vba.gz
>>
>> There's one problem, though. It has problems to display certain
>> characters (in vim as well as gvim, on ubuntu 6.10) and displays their
>> hex code, such as: <80>, <80><98>, <89> ...
>>
>> Is this something about my setup? There's no problem with viewing the
>> affected man pages in a gnome-terminal, nor with the default man.vim man
>> page viewer.
>>
>> I already mentionned this problem in another thread, but it probably got
>> lost in it.
>>
>> Any help would be appreciated. I like this Manpageviewer, a.o. for its
>> optimised use of screen real estate. But this little display hickup is a
>> nuisance.
>
> Please try some of the suggestions mentioned with g:manpageview_options
> (see :help manpageview_options ).
I now know that this is not a Manpageviewer problem, but some mixup with
my locale and vim in general. Sorry for the wrong attribution.
I have selected 'English (United States of America)' as default language
thru the System -> Administration -> Language Support menu (Ubuntu
6.10). This generates following lines in /etc/environment:
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
This setting causes man to use curly and "‘" and "’". These quotes
display without problems in terminal sessions as well as in gvim, which
I am now using to prepare the body of this message.
However, when I open man output with vim or gvim, the rightmost quote
displays as a plain single quote (hex 27), the leftmost quote displays
as three characters, 'â' '<80>' and '<98>'. A word-splitting hyphen in
the rightmost column of lines is displayed as three characters: 'â'
'<80>' and '-' Apparently, Manpageviewer also reads this like that.
Still, I do not understand this. I can paste these quote characters in
vim and when I 'ga' them it shows:
8216 x2018 octal 20030 and
8217 x2019 octal 20031.
So how come it is a problem to get read these from man output? And how
can I fix this?
Just checked how gedit displays this man output, and it also shows these
multibyte characters in a funny way. So it is not even a vim problem.
I'll have to study further to understand and solve this problem.
TIA for any help and/or suggestions.
Guido.
>
> Regards,
> Chip Campbell
>
>
--
http://vanhoecke.org ... and go2 places!