How can we change encoding mode for the whole project rather than doing to single shapefiles in QGIS 3.4?

I wanted to change "UTF-8" to "Shift_JIS" to all project vector files.


you can use a python script for that task:

group = QgsProject.instance().layerTreeRoot().children()
layers = [ item.layer() for item in group ] #list of all layers
for layer in layers:

save the script to a file.py and open it from the Python console->Editor

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.