Does DBD::DB2
have a switch that performs automatic decoding from UTF-8, such as mysql_enable_utf8mb4
in DBD::mysql
?
Asked
Active
Viewed 56 times
0

sid_com
- 24,137
- 26
- 96
- 187
-
1codepage conversion ( from database codepage into the application codepage) is normally performed by the Db2-driver (i.e in this case the ODBC driver being used to access the Db2-database that underlies DBD::DB2). This is normally invisible to the application. – mao Feb 26 '23 at 13:39
-
1@mao, Sound like you're saying the underlying C library would it convert it UTF-8 -- and that's the case for other databases as well incl the aforementioned MySQL with appropriate options -- but that's says nothing about whether DBD::DB2 produces decoded text or not. Presumably sid_com checked and it doesn't? A complete absence of `utf8` in the module's source supports that. – ikegami Feb 26 '23 at 18:10