Webnet Webnet - 1 year ago 80
PHP Question

What encoding is this?

How can I determine what encoding this string is?

Sometimes, it’s the little things that make us the happiest.

Answer Source

It's UTF-8 decoded as Latin-1 encoded as UTF-8 decoded as CP1252.

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

Seriously... who does this?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download