0

I am trying to migrate my old backend to Djano REST framework. I have my old MySQL database with UTF-8. For example, in my database a name is saved as "Felipe Niño Arango". I'm not sure, but I think drf should decode this in response "Felipe Niño Arango".

I'am trying passing the chartset to db options:

'OPTIONS': {
                    'charset': 'latin1',
                    'use_unicode': True, }

Any idea?

Benjamin W.
  • 38,596
  • 16
  • 96
  • 104

1 Answers1

0

You have "Mojibake", as discussed here . The fix for such is found here . If you have trouble figuring out the details, provide more information, as discussed in both places.

Rick James
  • 122,779
  • 10
  • 116
  • 195