Question:
I'm trying to insert Arabic character from coldfusion 8 into mysql 4.1 DB the DB collation is utf8_unicode_ci
The form is in utf-8 enicoding.
When I use the php mysql admin and try to inset Arabic it works fine but when I use coldfusion I get ??????????
Any idea?
------------
Answer:
assuming that the db is correctly setup for unicode and that you're using JDBC
driver (not ODBC) then:
add
useUnicode=true&characterEncoding=utf8
to the connection string box found in the advanced menu for that DSN.
How can we manage this in shared hosting environment? Is it possible to implement this in coding ? May be, we can us admin API. But that is also banned in shared hosting.
ReplyDeleteI had this problem with my new hosting company, I have sent them a ticket specifying what exactly I need to do with the DSN and they implemented it for my DSN and it worked fine. So just drop them a ticket.
ReplyDelete