Guest alexkos Posted May 8, 2008 at 03:00 PM Report Posted May 8, 2008 at 03:00 PM Hi! The problem is that iconv, the main tool for converting files can not process files of such a big size! PS I'm using a Mac, so any UNIX solutions will work + can emulate WinXP Quote
imron Posted May 8, 2008 at 03:25 PM Report Posted May 8, 2008 at 03:25 PM Open the file in vi. Type the following commands: :set encoding=gb2312 :set fileencoding=utf8 :w myfile.utf8 :q Vi will be using iconv to do the conversions, but it will possibly be doing it line by line so iconv should be able to handle it. Make sure you save to a different filename than the original, just in case something goes wrong and the original 90mb file is lost. Quote
c_redman Posted May 8, 2008 at 08:15 PM Report Posted May 8, 2008 at 08:15 PM perl -MEncode -ne "binmode STDOUT, ':utf8'; print decode('euc-cn', $_)" < test.gb > test.u8 Quote
Guest alexkos Posted May 11, 2008 at 11:39 AM Report Posted May 11, 2008 at 11:39 AM 非常感谢!!! thanks a lot! Another solution is: open the file using Wenlin... surprisingly, it can handle 90 mb files Quote
Recommended Posts
Join the conversation
You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.