I have some problems with the file coding of python files. When I modify a python script and then I save again the file, there are some strange characters, maybe depending on the encoding of the text editor used. When I recall the py file using the "Run python script" command of the console, the run stops immediately, giving this log:
File "O:/PS101_frame_proc__40D_4cams.py", line 3
import PhotoScan
^
SyntaxError: invalid character in identifier
The first lines of my python script file are:
path="C:\Users\Public\Documents\3D_D40\23_09_13_15_35\sc0"
file_name="sc0"
?»?import PhotoScan
import os
import sys
app = PhotoScan.Application()
path_cal="C:\Users\Public\Documents\Sc3D" #path for the calibration files
file_cal="C:\Users\Public\Documents\Sc3D\Cal_13.txt"
Note that the "?»?" characters where not intentionally written, but they apper in the file.
Please, what is the right encoding of the python file? ANSI, Unicode, UTF-8 or some others?
Thank you very much for your help.