Fixing Cyrillic Character issue in coldfusion
For fixing cyrillic character issues, we can use the ways given below:
way 1:
Keep <cfprocessingdirective pageenc oding = "utf-8"> line so that issue will get resolved.
For example,
<cfcomponent displayname="testCyrillic" hint="Replace special characters">
<!---To Fix Cyrillic character issue : starts--->
<cfprocessingdirective pageencoding = "utf-8">
Way 2:
Create jdbc datasource and add use Unicode=yes&charactorEncoding=UTF-8 with JDBC URL.
Driver class as usual: com.mysql.jdbc.Driver
For example,
jdbc:mysql:// localhost:3306/mySite? useUnicode=yes& charactorEncoding=UTF-8
way 1:
Keep <cfprocessingdirective pageenc
For example,
<cfcomponent displayname="testCyrillic" hint="Replace special characters">
<!---To Fix Cyrillic character issue : starts--->
<cfprocessingdirective pageencoding = "utf-8">
Way 2:
Create jdbc datasource and add use Unicode=yes&charactorEncoding=UTF-8 with JDBC URL.
Driver class as usual: com.mysql.jdbc.Driver
For example,
jdbc:mysql://
Comments
Post a Comment