any PHP or Ruby library to convert Tranditional Chinese to Simplified Chinese or vice versa (Big5 <--> GB)? the iconv library won't do it as it merely convert the encoding -- the glyph stays the same.
views:
184answers:
2
+1
A:
Try this class for PHP - http://www.phpclasses.org/browse/package/3130.html
MicTech
2009-05-13 06:12:27
+1
A:
You might get some leverage with 1.9
Encoding.constants.grep /gb/i => [:GB18030, :GBK, :GB1988, :GB12345]
Encoding.constants.grep /big5/i => [:Big5, :BIG5, :Big5_HKSCS, :BIG5_HKSCS, :Big5_UAO, :BIG5_UAO]
so it's something like
original = File.open('name', 'r:original_encoding').read
original.force_encoding('new_encoding')
Though I've never tried it.
rogerdpack
2010-04-09 18:38:05