Confira
-
#Python #Scoketio #Chat #leavingRoom Hello Minna! Olá Pessoal. No post de hoje quero trazer um projeto que estou desenvolvendo, ele est...
-
Hello minna-san! How are you? | Como vocês estão? Today I brought you a tutorial of how to connect your MySQL database to your Python ...
-
Yoooooooooo! Vocês ficaram sabendo da super abertura que as meninas do SNSD fizeram no dia 18 de agosto? Se não, fiquem por dentr...
Error on UTF-8 MSSQL windows FreeTDS Linux
Hi guys, whats up?
Today I came with a nice approach to solve the issue that was giving us a really good headache!
We have a connection string on our linux server that connects to the MSSQL in an external machine.
For that we had a connection string similar to:
$dsn="odbc:DRIVER=freetds;SERVER=$serverName;PORT=$port;DATABASE=$dbName;"
After look everywhere and even on the FreeTDS documentation we found an extended option that it is resumed to
ClientCharset=UTF-8;ServerCharset=CP1252
so the final connection string is something like:
$dsn="odbc:DRIVER=freetds;SERVER=$serverName;PORT=$port;DATABASE=$dbName;ClientCharset=UTF-8;ServerCharset=CP1252";
Thanks for the StackOverflow thread
https://stackoverflow.com/questions/37141342/character-set-mismatch-on-linux-with-odbc-to-sql-server
they saved my day!
So that is all for now!
thank you folks.
Midori
Assinar:
Postar comentários (Atom)

Nenhum comentário:
Postar um comentário