Jump to content
lordspirit

Python encoding

Recommended Posts

lordspirit

Boas malta

Preciso de uma ajuda em relaçao à transformaçao de utf8 para latin1 de uma lista em python

a minha lista tem multiplos caracteres especiais e tenho de a converter de forma a nao causar transtorno ao modificar os dados

# -*- coding: utf-8 -*-

'''

Created on 19 de Out de 2013

'''

teste = ['Gonçalo', Instituto PoliTécnico']

teste2 = ['abc£àªs', '4Asóqw97X', 'S4tsd*1€']

..

tentei com o teste.enconde(latin1)

mas o encode nao é um atributo de uma lista.. :D

se alguem poder ajudar agradeço

cumprimentos

Share this post


Link to post
Share on other sites

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

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.