Install CudaText. Open you text files with Korean. Choose Korean codepage in the statusbar: "Encoding / Reload as / <encoding>".
Then choose "File / Encoding / Convert to / UTF8". Save the file.
When opened in SynEdit, I convert to WinCPToUTF8, (for Russian language support)this is not necessary Russian language support, this is your "windows code-page" support.
Hi!
Convert your Korean text to UTF8 with a little bit of Lazarus:
uses ........LConvEncoding; ... procedure TForm1.Button4Click(Sender: TObject); var sl1,sl2 : TSTringList; s : string; begin sl1 := TStringList.create; sl2 := TStringList.create; sl1.LoadFromFile('Korean.txt'); s := CP949ToUTF8(sl1.Text); sl2.Text := s; sl2.saveToFile('KoreanUTF8.txt'); sl1.free; sl2.free; end;
Winni
Thank you for your answer too!When opened in SynEdit, I convert to WinCPToUTF8, (for Russian language support)this is not necessary Russian language support, this is your "windows code-page" support.
instead of dealing with GetUnicode() function directly, one might use "fpwidestring" wideString manager. But I'm not sure if it's friendly with LCL.
Hi!
I don't know if it helps with Korean but there is in the unit LConvEncoding also this function:
function GuessEncoding(const s: string): string;
Winni