How to transform encoding from GB2312 to UTF-8 and form UTF-8 to GB2312 in linux lazarus / 12-Debugger ---------------------------------------------------------------------- lazijiding · 2011-02-24 06:06 How to transform encoding from GB2312 to UTF-8 and form UTF-8 to GB2312 in linux? UTF8Encode  and UTF8Decode(delphi) seems not  right thank you! ---------------------------------------------------------------------- ik · 2011-02-24 08:58 I think you should use iconv instead. I do not think that Lazarus and FPC support converting this charset at the moment, but libiconv does. ---------------------------------------------------------------------- Phil · 2011-02-24 14:27 Quote from: lazijiding on February 24, 2011, 07:06:23 amHow to transform encoding from GB2312 to UTF-8 and form UTF-8 to GB2312 in linux? UTF8Encode  and UTF8Decode(delphi) seems not  right thank you! Try UTF8ToCP936 and CP936ToUTF8. See lconvencoding.pas for more. Thanks. -Phil ---------------------------------------------------------------------- lazijiding · 2011-02-25 03:13 Problem has been solved uses LConvEncoding; s1:=ConvertEncoding(s2,'utf8','gb2312'); s2:=ConvertEncoding(s1,'gb2312','utf8');  it works good  now thank you!