LiamKarlMitchell / InfiniteSky

InfiniteSky is an open-source mmorpg project, It is written in Node.JS
GNU General Public License v3.0
33 stars 42 forks source link

Translation - Dump Korean UTF8 from game infos and put into spreadsheets. #96

Open LiamKarlMitchell opened 10 years ago

LiamKarlMitchell commented 10 years ago

Look at dumping out Game Infos strings from Korean data using utf8. Need to get strings that are actually valid and can be passed to google translate or human translators.

Some items and other things have really broken characters that apparently don't even make up proper words. http://nodejs.org/api/string_decoder.html

LiamKarlMitchell commented 9 years ago

image

http://2cyr.com/decode/?lang=en

Managed to re-encode the korean. ÆıØÆȺ¯µµ to 파극팔변도 cp949 to iso8859-1

LiamKarlMitchell commented 9 years ago

https://www.npmjs.com/package/encoding

var encoding = require("encoding");
var resultBuffer = encoding.convert(process.argv[2], 'cp949', 'iso8859-1');
console.log(resultBuffer);
LiamKarlMitchell commented 3 years ago

In csharp maybe something like this. Can of course use static for the 949 encoding get it once and re-use.

byte[] utf8Bytes = Encoding.Convert(Encoding.GetEncoding(949), Encoding.UTF8, bytes);
var yoString = Encoding.UTF8(utf8Bytes).ToString();