Using “calculate field” in python script fails to display Arabic characters correctly.
I have exported the modelbuilder to python script, but unfortunately the Arabic characters cannot by displayed correctly when the script is executed.
# Import arcpy module
import arcpy
# Set Geoprocessing environments
arcpy.env.scratchWorkspace = "D:\\Test.gdb"
arcpy.env.workspace = "D:\\Test.gdb"
# Local variables:
Buildings_POINTS = "D:\\U.gdb\\Buildings_POINTS"
# Process: Calculate Field
arcpy.CalculateField_management(Buildings_POINTS, "Ref_MOLG", "\"المخططات الهيكلياهلين المعلن للاعتراض\"", "PYTHON", "")
Now when I copy the script to python:
I believe that its a Unicode issue. how can I fix it.