Hi, all, Is it possible to print the hex value of the cp936-coded Chinese character under the current cursor, just like "ga" for the ASCII char.
I found that "g8" can print the correct hex value of UTF8-encoded Chinese character in a openning UTF-8 encoded file. But, for a cp936 (or GBK) encoded file, although gvim can auto-detect it as cp936 and open it successfully, I still cannot figure out how to get the hex value of a Chinese character. In this case (I mean opening a cp936 file in GVIM), I tried "ga" and "g8" for fun. "ga" cannot work as I expected, "g8" continues to print the hex value of the Chinese character's corresponding UTF8 encode, not the cp936 one that I need. I think the result of "g8" is because of gvim's implementation that it treats all the characters' encoding as UTF-8 internally. Am I right? Again, is it possible for me to print the hex value of a cp936-encoded Chinese char? BTW, the encoding related settings in my .vimrc are: set encoding=utf-8 set fileencodings=ucs-bom,utf-8,cp936,latin1 Thanks, -- Best, Zhaojun