Problems with accent (á, ç, ã) on arcpy.mapping

1554
1
04-22-2013 12:10 PM
LeticiaNascimento
New Contributor
I am using sublime for editing my scripts and using Python IDLE to run it. I have to use string that accept portuguese accents such as á, ç and ã.

I tried using the

# coding: utf-8
import arcpy


and the

# -*- encoding: utf-8 -*-
import arcpy



And both didn't work. I'am using on the Text Elements to change the text to something new. Like this:

textoGeral = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT")[9]
textoGeral.text = r"Cenário gerado com base nos resultados do modelo hidrodinâmico"


How can I do this?

Thank you
Tags (2)
0 Kudos
1 Reply