From: odbc at ikiliekki dot org Operating system: Windows server 2003 SP2 PHP version: 5.3.0 PHP Bug Type: ODBC related Bug description: Cyrillic characters from MSSQL coming up as questionmarks
Description: ------------ I have some Russian text in mssql, with fieldtype nvarchar(50). This text shows correctly in microsoft tools, such as ms sql server management studio express. Querying the data with ODBC [ odbc_connect("DRIVER={SQL Server};Server=<ip>;Database=<db>;Charset=UTF-8",<user>,<pass>); ] results in questionmarks apart from ASCII characters in the same contents. (Such as "test ????") I've tried setting collates, languages and such in SQL server and in queries (SET LANGUAGE N'Russian'). Wiresharking the data from webserver (IIS) to browser shows that it's questionmarks and not just being rendered wrong. Expected result: ---------------- test ремен Actual result: -------------- test ????? -- Edit bug report at http://bugs.php.net/?id=49971&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49971&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49971&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49971&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49971&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49971&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49971&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49971&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49971&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49971&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49971&r=support Expected behavior: http://bugs.php.net/fix.php?id=49971&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49971&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49971&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49971&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49971&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49971&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49971&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49971&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49971&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49971&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49971&r=mysqlcfg