Question
CMFX 7, MYSQL5, and UTF8
I am running CFMX 7 Enterprise and MYSQL 5 with
mysql-connector-java-5.0.7-bin.jar file.
My database,tables, and columns are defined as utf8.
I have this connection string on my datasource:
jdbc:mysql://swwdb4.unx.sas.com:7890/etst?zeroDateTimeBehavior=convertToNull&characterEncoding=UTF8&characterSetResults=UTF8
I have these lines in my index.cfm(I am using Fusebox):
<cfprocessingdirective pageencoding="UTF-8">
<cfset setEncoding("URL","UTF-8")>
<cfset setEncoding("FORM","UTF-8")>
<cfcontent type="text/html; charset=UTF-8">
finally I have this option on the form tag: enctype="multipart/form-data: charset=utf-8"
When Chinese or Cyrillic characters entered on the form, they are stored in the database as ????.
What else do I need to add for these characters to be stored and displayed correctly?
My database,tables, and columns are defined as utf8.
I have this connection string on my datasource:
jdbc:mysql://swwdb4.unx.sas.com:7890/etst?zeroDateTimeBehavior=convertToNull&characterEncoding=UTF8&characterSetResults=UTF8
I have these lines in my index.cfm(I am using Fusebox):
<cfprocessingdirective pageencoding="UTF-8">
<cfset setEncoding("URL","UTF-8")>
<cfset setEncoding("FORM","UTF-8")>
<cfcontent type="text/html; charset=UTF-8">
finally I have this option on the form tag: enctype="multipart/form-data: charset=utf-8"
When Chinese or Cyrillic characters entered on the form, they are stored in the database as ????.
What else do I need to add for these characters to be stored and displayed correctly?
