Im using pyodbc and running into encoding issues with strings. After executing a query i end up strings that look like: u'p\x00w\x00e\x00c\x00w\x00'
If i decode the string as utf-16, the string looks correct. This only seems to happen when connecting from macs, as the linux odbc drivers seem to work correctly.
I've tried using different values for CHARSET (ex. UTF8, UTF16) in the connection string to no avail. My DriverManagerEncoding is set to UTF-32 in vertica.ini. Does anyone have any ideas what might be happening here? Thanks.
Using:
python 2.7
osx v10.8 (with iODBC)
vertica v6.1.2
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.