fbc icon indicating copy to clipboard operation
fbc copied to clipboard

print function shows chinese character overlapping

Open elfsimulate opened this issue 2 months ago • 1 comments

Compile the following code with FBC: print "汉字显示" on windows 10 When the source code encoding is UTF-8, it displays garbled characters When the source code encoding is UTF-8 with BOM, the Chinese characters overlap When the source code encoding is ANSI, the Chinese characters display normally.

Image Image

elfsimulate avatar Nov 12 '25 11:11 elfsimulate

You can check the document; it says, Unicode files must be saved with Byte Order Mark (BOM), otherwise fbc does not recognize them as Unicode.

https://www.freebasic.net/wiki/ProPgSourceFiles

woyxiang avatar Dec 12 '25 09:12 woyxiang