Encoding data #590
-
|
Previously, the oracleCX package had an encoding connection setting in the connect method. Is it possible to somehow emulate this setting with OracleDB? As I understand it, data transferred to OracleDB is exclusively encoded in UTF-8, correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
@DFilyushin, the only advantage that the Why do you want to implement the |
Beta Was this translation helpful? Give feedback.
The second questions is far easier to answer. It wasn't introduced as it was always there! This is based on the Oracle Client libraries and their greater concern for covering every possible scenario that someone might want at some point. And my knowledge and understanding of character sets and string encodings was very poor at the time so I simply followed along. As my knowledge matured and the overall ecosystem matured, the need for this was no longer present and even in cx_Oracle the default was "utf-8" for many years already.
As for your first comment, you can easily enough bypass the decode when retrieving data from the database but the driver makes every effort to avoid sending strin…