.. (55, 26, 'Small Business and Individual Chapter 11s - The NewCode
\x92s Effect on Strategies', 'AUDIO'...
with \x92 for apostrophe etc. I've tried putting every encoding in
the create_engine statement, including ISO-8859-1 used by MS SQL, but
the print statements always come out like:
.. The NewCode?s Effect on ..
I also tried passing the string to unicode(string, 'ISO-8859-1'), but
this gives me:
.. UnicodeEncodeError: 'ascii' codec can't encode character u'\x96' in
position 48: ordinal not in range(128) ..
Does anyone know about MSSQL or this encoding, or how to get
apostrophes where \x92 is?
Any help would be greatly appreciated.
-Steve
Since he starts with "unfortunately, we have a ms sql server at work",
maybe he's not developing on windows, and pyodbc is windows-specific.
I think the data could be encoded with the 1252 charset, which is
similar to 8859-1 but has an apostrophe in chr(146)
db = create_engine('mssql://./test', module=pyodbc,
module_name='pyodbc')
On Apr 11, 11:50 am, "Rick Morrison" <rickmorri...@gmail.com> wrote:
> Last I heard, pyodbc was working on any POSIX system that supports odbc
> (most likely via unixodbc or iodbc)
>
> http://sourceforge.net/projects/pyodbc/
>
> -- check out the supported platforms
>