Best way to read/write Chinese (GBK/GB18030) files?

John Xu 728308756 at qq.com
Tue Mar 7 01:45:27 UTC 2023


I'm new to dlang. I didn't find much tutorials on internet about 
how to read/write Chinese easily. std.encoding doesn't seem to 
support GBK or GB18030:

"Encodings currently supported are UTF-8, UTF-16, UTF-32, ASCII, 
ISO-8859-1 (also known as LATIN-1), ISO-8859-2 (LATIN-2), 
WINDOWS-1250, WINDOWS-1251 and WINDOWS-1252."

Then what is best way to read GBK/GB18030 contents ? Even 
GBK/GB18030 file names ?




More information about the Digitalmars-d-learn mailing list