Hi Tony, The last mile to go:
This always worked: (output is 馬) ------------------------------------------- let input = "\xE9\xA6\xAC" let output = iconv(input, "UTF-8", "UTF-8") ------------------------------------------- However, this failed: (output is '\xE9\xA6\xAC') ------------------------------------------- let input = "%E9%A6%AC" let input = substitute(input, '%', '\\x', 'g') let output = iconv(input, "UTF-8", "UTF-8") ------------------------------------------- Now, the key becomes how to translate string (single quoted) to string (double quoted). I guess that "\x" is meaningful only within double quote. Thanks Sean --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
