Guest alexkos Posted May 8, 2008 at 03:00 PM Report Share 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 Link to comment Share on other sites More sharing options...
imron Posted May 8, 2008 at 03:25 PM Report Share 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 Link to comment Share on other sites More sharing options...
c_redman Posted May 8, 2008 at 08:15 PM Report Share Posted May 8, 2008 at 08:15 PM perl -MEncode -ne "binmode STDOUT, ':utf8'; print decode('euc-cn', $_)" < test.gb > test.u8 Quote Link to comment Share on other sites More sharing options...
Guest alexkos Posted May 11, 2008 at 11:39 AM Report Share 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 Link to comment Share on other sites More sharing options...
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.