Tag-Archive for » Coldfusion error: Hebrew characters failed to display properly – UTF8 «

Coldfusion error: Hebrew characters failed to display properly – UTF8

Problem description-

Setup MySQL database and CF DSN but the Hebrew characters fail to display properly – UTF8.

Temporary work around-

Recreate the DSN and set the driver type from MySQL 3 to MySQL 4/5
Note: This solves only for characters already stored in the DB – if I update the text using coldfusion – then ? Marks appear instead

Permanent solution-

Please include this code in your script-

<cfscript>
setEncoding(”URL”, “UTF-8″);
setEncoding(”Form”, “UTF-8″);
</cfscript>

At the top of form loading script.

In CFAdmin, under the connection string field specify these piece of entry-

useUnicode=true&characterEncoding=UTF-8

VN:F [1.6.7_924]
Rating: 0.0/5 (0 votes cast)
VN:F [1.6.7_924]
Rating: 0 (from 0 votes)