What is coding?

How to determine what is the encoding of this string?

Sometimes, it’s the little things that make us the happiest. 
+7
source share
1 answer

It is UTF-8 decoded as Latin-1, encoded as UTF-8, decoded as CP1252.

 >>> u'’'.encode('cp1252').decode('utf8').encode('latin1').decode('utf8') u'\u2019' 

Seriously ... who does this?

+17
source

All Articles