Editor problems with eric7

when i write a " hello world " program in eric7
i get this error message :

The debugged program raised the exception unhandled ValueError
"source code string cannot contain null bytes"
File: /home/reidkb/eric_env/lib/python3.6/site-packages/eric7/DebugClients/Python/DebugClientBase.py, Line: 297

now if i write a " hello world " using kate and save it ,
open it up in eric7 it will run .

if i add more lines of code to the program in eric7 it will run .

if i remove a line of code from the program i will get the same
error message .

if i close a file that works with eric7 , then open it up again
the file will be empty .

if i open the file with kate the code will be there .

all files are encoded with utf-8 .

So i went to check the settings for editor and utf-8 was not default .
set it right and everything works .

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.