How do i fix it
I have a language problem which I couldn't solve, no matter what I did, I
request your help with this.
I do web-publishing using Xampp on Windows 2008 Server R2 Enterprise
(English) OS. I use Xampp Portable 1.8.1 edition.
I also use Apache 2.4.3 and PHP 5.4.7 (VC9 X86 32bit thread safe)
editions. for database I use Microsoft SQL Server 2008 Enterprise Edition
(Collation: Turkish_CI_AS).
The problem is that, characters such as Þ,Ð,Ý in Turkish cannot be
displayed properly even though php.ini, httpd.confand all php files are
set as UTF-8. But when I check the database, I find out that charcaters
are stored correctly, and when I make queries, everything is normal.
However the result changes in the web medium depending on the driver I
use. For example:
when I connect by ODBC, only Þ cannot be displayed.
when I connect by Sqlsrv or PDO, Þ becomes S, Ý->I, and Ð->G.
In other words, the problem happens on the web medium. The same hardware
and software also exists on my local, the only difference being that the
operating system is Turkish. And I don't experience such a problem on my
local. Nturally I think that the problem is language based. I plan to add
other languages such as Russian and Chinese in the coming months. Do you
have an idea how I can overcome this problem of UTF-8 characters?
No comments:
Post a Comment