Closed (outdated)
Project:
Oracle Driver
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
27 Mar 2013 at 09:40 UTC
Updated:
20 Oct 2025 at 09:38 UTC
Jump to comment: Most recent
Comments
Comment #1
aaaristo commentedwhich query you where running???
Comment #2
agoradesign commentedI've ran into the same problems in my recent project. I've found this bug report on php.net: https://bugs.php.net/bug.php?id=35003
The workaround as mentioned by [2013-03-12 19:05 UTC] wilbert dot j at gmail dot com helped me to get rid of the warnings.
UPDATE:
found another issue on php.net: https://bugs.php.net/bug.php?id=54379&edit=1 (which also leads to: https://github.com/php/php-src/pull/59 )
quick summary: different character encodings of connection and data are incorrectly handled. I can confirm that because all of my truncated values contained german umlauts.
Comment #3
Anonymous (not verified) commentedIt's a PHP bug with OCI
Comment #4
agoradesign commentedWell, it is - but I think, it would be worth a thought, if the "charset" parameter in the connection string should be made configurable. In my case, it helped changing it to WE8MSWIN1252 instead.
But this change also triggered the next problem: I had to take care of run a utf8_encode() for every string that may contain special characters. We only use the Oracle connection for reading data and store it in a Drupal site running on a MySql database. I don't know, if changing the charset of the connection would cause problems when running the whole Drupal site on Oracle
Comment #5
agoradesign commentedComment #6
bohartD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.
Everyone can apply the patches/suggestions above (not tested by the maintainers, tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!