Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Unicode conversion bug?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mansing  
View profile  
 More options Mar 12 2008, 5:10 am
From: Mansing <msing...@hkstar.com>
Date: Wed, 12 Mar 2008 17:10:26 +0800
Local: Wed, Mar 12 2008 5:10 am
Subject: Re: Unicode conversion bug?

Thanks Tony for the advice. More details on my problem:

I am using gVim on Windows Vista Business which has full (normal)
Chinese support. I set "enc=ucs-2le" and "fenc=utf-8" for conversion
(saving to utf-8 format); I use the "Save As" menu option to do the same
on Notepad. The (ucs-2le) input file was displayed correctly on gVim
with guifont "MingLiU".

To examine the output files, I set "enc=utf-8" and the guifont to
"MingLiU", for both cases. The utf-8 file converted by Notepad was
displayed correctly, while that by gVim wasn't. The hex dumps, for both
output files, were copied from the gVim window after ":%!xxd".

mt 2008-03-12

Tony Mechelynck wrote:
> msing...@hkstar.com wrote:

>> I am playing with CSV files with Chinese contents.  Windows (Excel)
>> outputs a text file in ucs-2le coding. . .

>> VIM converted utf-8:

>> 00040b0: 7169 3320 796f 6e67 3120 28c3 a5c2 91c2  qi3 yong1 (.....
>> 00040c0: a8c3 a5c2 95c2 93c3 a5c2 bac2 b829 2c20  .............),

>> Notepad converted utf-8:

>> 0004090: 7169 3320 796f 6e67 3120 28e5 91a8 e595  qi3 yong1 (.....
>> 00040a0: 93e5 bab8 292c 200d 0a43 6f73 6d6f 7320  ....), ..Cosmos

>> As can be seen, English characters are fine, but Chinese characters
>> (those "..." inside parantheses) are different.  Does it suggest a bug
>> in the VIM conversion? . . .

> . . .
> - Are you using gvim or console Vim? If Console Vim, does your console
> support Unicode?
> - In any case, what is the reply to

>    :set encoding?
> . . .


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.