2021年1月5日星期二

Unicode issues with single quote causing test to fail

Single quote is causing too many issues for me.

I have

expected = 'here\'s what i found.'  actual = u'here's what i found.'  

When expected == actual it fails. I am using Django server. I tried to use Unicode equivalent then also it fails. How to fix this?

enter image description here

https://stackoverflow.com/questions/65589141/unicode-issues-with-single-quote-causing-test-to-fail January 06, 2021 at 09:53AM

没有评论:

发表评论