Mercurial > hg > orthanc-databases
comparison Framework/Odbc/OdbcEnvironment.cpp @ 331:674bbb9d1c83
added OdbcEnvironment::GlobalInitialization()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Aug 2021 07:28:53 +0200 |
parents | b5fb8b77ce4d |
children | 16aac0287485 |
comparison
equal
deleted
inserted
replaced
330:8f17f23c9af7 | 331:674bbb9d1c83 |
---|---|
92 { | 92 { |
93 return s; | 93 return s; |
94 } | 94 } |
95 } | 95 } |
96 } | 96 } |
97 | |
98 | |
99 void OdbcEnvironment::GlobalInitialization() | |
100 { | |
101 /** | |
102 * Explicitly inform the ODBC driver that the application is using | |
103 * UTF-8, by making sure that default "C" locale is used. We are | |
104 * in the scenario "ANSI application with a Unicode driver". | |
105 * https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/programming-guidelines | |
106 * https://www.progress.com/tutorials/odbc/unicode | |
107 **/ | |
108 setlocale(LC_ALL, "C"); | |
109 } | |
97 } | 110 } |