database connection - SQL Server 2000 charset issues -


once again charset issues when talking db's :)

i have 2 enviroments running zend server. bot of these communicate sql server 2000 using mssql extension. none of them has value given charset in settings of extension. 1 works , other 1 returns data in wrong encoding.

the problem became noticed when data beeing inserted mysql database , screamed sqlstate[hy000]: general error: 1366 incorrect string value: '\xf6m' column 'cust_lastname' @ row 1.

i tried using set names utf8 sql server connection return correct data, complains , says names not recognized set statement. looking around people recommend using doesn't seem part of sql server 2000 :)

so, should do? how i, without fiddling sql server database/tables, tell send me data in utf-8 encoded format?

edit:

some more info...

  • sql server uses finnish_swedish_ci_as collation
  • mysql has every table in utf-8 format , uses utf8_unicode_ci

i didn't find solution , ended converting , utf8 in application. if encapsulated within class doesn't riddle code. way tell sql server encoding use during communication better.


Comments

Popular posts from this blog

how to build hyperlink for query string in php -

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

queue - mq_receive: message too long -