I've created script for adding a webmap to my ArcGIS Enterprise (Portal). I've exported a webmap as a json-file (operationalLayers and tables), and I'm using this file for creating the webmap in Python. First I define the properties of the webmap (title, type, tags), then read the json-file and then change the urls and itemids found in the file. The creation of the web map is done by this python method:
The same happens for attribute aliases. I can't find any information about changing encoding in the gis.content.add - method. Does anyone have a solution for this?