Your tool can now write CodePage encoding from registry automatically.
For my computer that tell your tool to make .gpi for 874-CodePage (Thai-Eng font)

9ec5f1d3069a5073408aa7029492a89a