Jump to content
Sign in to follow this  
SidneiColtre

VarPythonEval with unidecode

Recommended Posts

Good morning, I migrated from Python 2.7 to 3.7 and I'm having errors in preparing variables with accents, like this:

  listaCampos.extend(  VarPythonEval('[  ("Solicitação", "mso.idSolicitacao"), '+
    '("Cod. ensaio", "cen.codEnsaio"), ("Id parceiro", "mso.idParceiro"), '+
    '("Nome parceiro", "cpe.nome"),'+
    '("Finalidade", "cfi.nome"), ("Lacre","mip.lacre")] '));
    
Error: --------------------
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe7 in position 8: invalid continuation byte (line 1, offset 4): ''


How to proceed?    
    

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×