On 06/19/2016 12:06 PM, Christian Gollwitzer wrote: > Am 19.06.16 um 18:20 schrieb Rustom Mody: >> I gave an emacs solution to the issue not because I find editor-wars engaging >> but because I dont know how to do *this* with vi. >> I'd be surprised if vi actually cant do these: >> 1. Look under the unicode-hood to peek at what a char is -- C-u C-x = in >> emacs >> 2. Change file encoding -- C-x RET f in emacs >> >> Please do suggest vi-ways of handling this -- that would be useful! >> > Changing the encoding is > > :set fileencoding=utf-8 > > for instance. This will recode the buffer to utf-8, the rendering should > stay the same. Saving the file would now write a bytestream which has an > utf-8 interpretation in accordance to the display.
Actually it doesn't re-encode the buffer iteslf. Upon saving it will try to encode the buffer to that. There's another variable, just "encoding" that I think refers the buffer in memory. Not sure about that though. -- https://mail.python.org/mailman/listinfo/python-list