bruth/django-tracking2 — pull request #37 by bentleycook (2014-07-16 15:26:28+00:00)
Title: Handling UTF-16 Encoded User Agents

A user agent that is encoded with UTF-16 causes a DataError to be raised when the Visitor objects is saved.

This problem only occurs if your database isn't set to store UTF-16

Error:
DataError: invalid byte sequence for encoding "UTF8": 0xb7

Meta:
'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Rogers Hi\xb7Speed Internet; (R1 1.3))',