Django - 'charmap' codec can't encode characters in position

by GarciaPL on Wednesday 1 January 2014

I used to have a problem while I was developing some application using Django (Python Web Framework). This problem occurs when I received some data from some kind of source using for example JSON notation. When this data contains some custom characters which should be saved in Unicode notation, I received and error like this one :

'charmap' codec can't encode characters in position
The solution of this issue is quite easy - everything applies to encoding of your file with source code. In this case I used to editor called PyDev (Eclipse based) in which you should go to :
Windows -> Preferences -> General -> Workspace
after that change option 'Text File Encoding' to UTF-8

References : [1] Django Python Web Framework [2] Stackoverflow.com Newcomer error in parsing tweet json unicodeencodeerror charmap codec cant encode characters in position 13-63: character maps to <undefined>