Getting bad license key error with PDFNetPython.PDFNet.Initialize(LICENSE_KEY)

Q:

Trying to pass my license key into PDFNet.Initalize causes the following error

`

Exception: Bad License Key. PDFNet SDK will work in the demo mode. For more
information please see PDFNet FAQ or go to pdftron.com/kb_bad_key

`

I am using Python in a Linux VM on OSX

A:

This is an issue with different Unicode encoding in Python. See the Readme on github, or the following posts for more information.

https://groups.google.com/d/msg/pdfnet-sdk/9nNgLJoQEkE/i4OuzE78MxgJ
https://groups.google.com/d/msg/pdfnet-sdk/9wDzBQkxQDs/gyvmigQ0R_MJ
https://groups.google.com/forum/?fromgroups#!searchin/pdfnet-sdk/UCS4