[PB 6.10 beta 4] WriteString breaks file encoding in IDE?
Posted: Tue Jan 30, 2024 12:59 pm
Probably a bug with the IDE more than encoding, as Notepad++ always properly detects that the file is UTF-8 in the following examples.
The file format is recognised as UTF-8. If I type Alt 196, I have ─.
The file format is recognised as "plain text". If I type Alt 196, I have -.
Code: Select all
CreateFile(0, "PureBasicFile.pb", #PB_File_SharedRead | #PB_File_SharedWrite | #PB_UTF8)
Code: Select all
CreateFile(0, "PureBasicFile.pb", #PB_File_SharedRead | #PB_File_SharedWrite | #PB_UTF8)
WriteString(0, "This is text.", #PB_UTF8)