Saluton Ted :)

Ted <[email protected]> skribis:
> Hi Raúl, I've been having the same problem.  Somewhere along the line
> the copied text is getting converted from ISO-8859-1 to utf-8.

Or viceversa, maybe. Look what I'm getting after selecting and copying
my name:

~$ xclip -o -selection clipboard | od -tx1
0000000 52 61 c3 ba 6c
0000005
~$ xclip -o -selection primary | od -tx1
0000000 52 61 fa 6c
0000004

The clipboard selection (XA_CLIPBOARD) is encoded using utf-8,
correctly, and that's why using "* works for me. But the primary
selection (XA_PRIMARY) is converted to latin1, don't know why.

In short, Google Chrome fault, I'll report the bug.

> This causes problems because it's actually already in UTF-8.  So to
> convert the current line back you can do
>
> :.!iconv -f utf-8 -t ISO-8859-1
>
> I have no idea why this is, but this is at least a usable workaround.
> I'd like to know more about this.

Thanks, I'll use this as an interim solution :)

> I've noticed what seems to be a related issue: If you _select_ (not
> copy) your name in Chrome, and then go to a console and type
>    xclip -o
> the ú will be garbled.

Of course, because then the XA_PRIMARY selection is used, and that's is
garbled.

If the problem is solved I'll post a note here. I was investigating this
issue because I want to write a Chrome extension so Vim can be used to
edit text boxes.

-- 
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

-- 
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

Reply via email to