Double-Byte Characters and CFQueryParam

August 31, 2006

One of the challenges we’ve had at my present company is using CFQueryParam with double-byte characters. Basically, we couldn’t. A recent post on the Phoenix CFUG list prompted me to actually read the live docs on the subject. I found a comment there that pointed out the string format option in the advanced data source settings.

By checking the “String Format” box (the one that says “Enable Unicode for data sources configured for non-Latin characters”) you can now send double byte characters successfully using CFQueryParam.

CF_Administrator_StringFormat

I am not sure when that option showed up. It is not documented in any of the on-line or printed manuals I have on administering Cold Fusion. The screen shots in the printed manual I have for MX 6 don’t even have that option…so it showed up at 6.1 or later. All I know is that it IS available in 6.1 + Updater.

It all makes sense now….but the lack of documentation is why it escaped me before. I wish I knew why its not documented. I also would like to know why its not checked by default….perhaps a performance or compatibility issue? If anyone out there knows more about this setting….please comment!