Hi, A user reported problems using the HTML plugin (http://www.vim.org/scripts/script.php?script_id=453) with MacVim on the vim_mac list. I looked into this problem and found out that it was caused by the fact that menus in this plugin are defined in a file whose filetype is latin-1 but some characters in the menus have their 8th bit set. In MacVim "enc" is set to utf-8 by default, but these menu items do not get converted to utf-8, instead they stay latin-1 with the 8th bit set. MacVim internally uses utf-8 (tenc is forced to utf-8 like the GTK port), so when this invalid utf-8 text reaches MacVim it causes problems.
The question now is: why doesn't Vim convert the menu titles to valid utf-8? Isn't "enc=utf-8" supposed to ensure that all text is internally represented as utf-8? Note that MacVim converts all incoming text to utf-8 using the CONVERT_TO_UTF8() macro, but in this case this macro does nothing as Vim already seems to think the text is in utf-8 format. Björn --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
