@AlexTP
You can use code 52936 with SetCodePage, from RTL of FPC, to transocde to/from HZ-GB2312 charset. This way works on both Windows and Linux.
BTW: I'm the fan of the CudaText, I hope it can support GB18030 charset, which is China's latest and most comprehensive character set. You can use the same way mentioned above, that the code page of GB18030 is 54936.