Hi, The extra character is the hex 0 character, ga returns <<00>> 0, Hex 00, Octal 000.
Just in case someone else get the same problem, I've corrected it by repalcing this line in my script: VIM::Buffer.current.append(0, content) by this: VIM::command('1') VIM::command("norm i"+content) Raph On 3/9/07, Raphael Bauduin <[EMAIL PROTECTED]> wrote:
HI, I'm writing a BufReadCmd to read content from a database. It works fine, except that new lines are displayed as [EMAIL PROTECTED] When I write it back new lines are correct in the data written in the DB. I guess this is a problem with encoding, but I have everyting in UTF-8: database, fileencoding (I set it at the start of BufReadCmd), encoding, and (I think) terminal (xterm -u8). Does any one have a hint? Searching the web for these characters wasn't very helpful.... thanks. Raph -- Web database: http://www.myowndb.com Free Software Developers Meeting: http://www.fosdem.org
-- Web database: http://www.myowndb.com Free Software Developers Meeting: http://www.fosdem.org