0

I have comments to models with some special chars, for examle:

[...] informacją [...]

but when I run admin I get:

'ascii' codec can't decode byte 0xc4 in position 23: ordinal not in range(128). You passed in <django.utils.functional.__proxy__ object at 0x7f0e3b35aa50> (<class 'django.utils.functional.__proxy__'>)

I have:

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

at beginig of file. This was happen when I install django-admin-tools

Nips
  • 13,162
  • 23
  • 65
  • 103

1 Answers1

0

try to use unicode function:

output = unicode(stringWithSpecialChars)

arturex
  • 568
  • 5
  • 11