Question
Want to use CFSET to set a Chinese character
I have a page translated into Chinese. For example, the
translation for the word "false" is 错 (Unicode?).
That works fine when displaying the page, but I need to use CFSET to set a variable (true/false quiz).
So, I want to do this:
<cfif a1 is "false"><cfset c1="错"><cfelse><cfset c1="对"></cfif>
But, I get a CFML error (it balks at the semicolon, it seems). Anybody know how I can set a variable to, in this case, a Chinese character?
Thanks
That works fine when displaying the page, but I need to use CFSET to set a variable (true/false quiz).
So, I want to do this:
<cfif a1 is "false"><cfset c1="错"><cfelse><cfset c1="对"></cfif>
But, I get a CFML error (it balks at the semicolon, it seems). Anybody know how I can set a variable to, in this case, a Chinese character?
Thanks
