Django view page Unicode error

Asked 2 years ago, Updated 2 years ago, 152 views

Hello, I am a beginner developer who is just starting to develop Django.

Django is trying to input DB and output input data.

I don't know if it's because it's in Korean when I input DB

UnicodeEncodeError at /

'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

I get this error..

I keep searching and trying, but it's not working, so I'm asking the masters.

How can I fix it?

django unicode

2022-09-21 19:28

2 Answers

python2

At the top, I declare as follows. ' Please take out the silver. '# '# encoding=utf-8

If you use Hangul in the sauce, name = u"Hangul"


2022-09-21 19:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.