I have a command plugin that sends the console output to a txt file.
However, there are - at the beginning of each line - strange (Null characters).
For example (I use Notepad++ to look at the output text file):
Filename fn = GeGetPluginPath() + "consolelog.txt"; BaseFile *bf = BaseFile::Alloc(); if (!bf->Open(fn, FILEOPEN::WRITE, FILEDIALOG::NONE)) return false; bf->WriteString("Start log regels."_s + "\n"); ... bf->WriteString("Einde log regels."_s + "\n"); bf->Close(); BaseFile::Free(bf);
I think it has something to do with ascii versus utf?
What can I do to get rid of these non ascii characters and just have plain ascii characters in my text file?