I am experiencing this problem on a win2k server with php4+iis+mssql7 here using german and french texts.
We have run the software on php4+apache+mysql and imported text data from various latin1 encoded languages via sql statements. Enterprise Manager and Query Analyzer both display the special characters like รค, รถ, ร as they should appear, but once in php, the characters are recoded as it some software thinks the output should be done with another character encoding.
This translation is happening in both directions (php->mssql and mssql->php) - tested with text input/output with data stored in mssql inbetween. Apparently though, some characters cannot be correctly recoded, so the output doesn't correspond for some of the special characters.
I did not find any way to influence on how the mssql db access in php can be configured concerning character sets - no hint in the accompanying files, no #define in the source, no function call or parameter to set character encoding.
Any more hints on where to look? IIS/PHP language settings perhaps? entries in the registries?
If I find something out, I'll let you know. This ought to be a common problem for non-english php/mssql users.