On 14/01/09 01:18, Yasuhiro MATSUMOTO wrote:
> Hi, Tony.
>
> Yes it's "full width full stop" character in utf-8. and it include 0x80.
>
>    <E3><80><82>
>
> i.e.
>
>    :command! SubJapanesePeriodToDot %s/。/./g
>    :SubJapanesePeriodToDot
>
> I get an error "E486: Pattern not found". Please check attached script.

The script attached to your mail is not in UTF-8, I got it with its 
fullwidth fullstop encoded as 0x81 0x42. After trying to read it in gvim 
in a couple of different encodings, I conclude that it is not in 
ISO-2022-JP either but in shift-JIS or in something that represents the 
fullwidth fullstop the same way as shift-JIS does.

I'm attaching a UTF-8 version of the same (with BOM), your gvim ought to 
be able to read it correctly if you have 'encoding' set to utf-8 and 
'fileencodings' (plural) starting with ucs-bom. Any Unicode-capable 
editor or browser ought to be able to read it correctly too.


Best regards,
Tony.
-- 
X-rated movies are all alike ... the only thing they leave to the
imagination is the plot.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Attachment: test.vim
Description: application/octetstream

Raspunde prin e-mail lui