Django view page Unicode error

Asked 1 years ago, Updated 1 years ago, 132 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.