Thanks for your reply
I have just tested Trace, it correctly generate the write code:
# create a new 'PLY Reader'
ply = PLYReader(FileNames=['C:/tmp/中.ply'])
but it cannot run through “python shell -> run scripts”, error message is:
Warning: In D:\ParaView56\VTK\IO\PLY\vtkPLYReader.cxx, line 135
vtkPLYReader (000001F667E1AFE0): Could not open PLY file
ERROR: In D:\ParaView56\VTK\Common\ExecutionModel\vtkExecutive.cxx, line 782
vtkPVCompositeDataPipeline (000001F6691B2040): Algorithm vtkFileSeriesReader(000001F6691B2130) returned failure for request: vtkInformation (000001F66964F970)
Debug: Off
Modified Time: 625380
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
It seems that even the character ‘中’ is encoded correctly in .py file, python interpretor still cannot decode this character correctly from py file.
Is there any way to specify encoding system for python interpretor embeded in paraview?