Encoding is not proper when query from Apache/PHP -
i have problem connection vertica.
use php , pdo odbc driver (thrue unixodbc).
when connect vertica via isql , select records table data fine encoded - fields utf-8 (non ascii symbols, example cyrillic) correctly prints.
if connect web php script , execute same query fields has unicode characters \u001a\u001a\u001a\u001a
each \u001a represent 1 non ascii symbol , can't printed.
i found problem occurs when run script web (web server apache2).
if run script console, it's ok.
if localhost/test.php, issue.
occurs on x32 , x64 versions of vertica client drivers linux , windows.
how apache can influence outcome results vertica?
make sure have drivermanagerencoding=utf-16 in vertica.ini file. of course maybe need try different value (utf-8 or utf-32 maybe) me, worked utf-16. seems independent of encoding client using. think unixodbc kind of conversion internally, , vertica driver has produce whatever encoding driver manager expecting.
Comments
Post a Comment