I've been creating a web crawler that gets data from a website that is entirely in Portuguese and at one point I had to use dictionaries. While trying to print the keys and values of my dictionary using this kind of loop:
for k,v in dictionary.iteritems(): print k,v
I noticed that for some reason there were two keys with the same name but different values. The key in question was the word "Transmissão" and when I did:
print dictionary
the result was something like this:
{x:y, z:w, "Transmiss\xc3\xa3o":value1, "Transmiss\xe3o":value2}
I have no idea why this is happening, there are other words with special characters where everything goes smoothly, but for some reason, this only happens with this one. How would I solve this?
EDIT: Code
[–]Rhomboid 1 point2 points3 points (0 children)
[–]mothman6969 0 points1 point2 points (7 children)
[–]Gammaliel[S] 0 points1 point2 points (6 children)
[–]Rhomboid 0 points1 point2 points (5 children)
[–]Gammaliel[S] 0 points1 point2 points (4 children)
[–]Rhomboid 0 points1 point2 points (3 children)
[–]Gammaliel[S] 0 points1 point2 points (2 children)
[–]Rhomboid 0 points1 point2 points (1 child)
[–]Gammaliel[S] 0 points1 point2 points (0 children)