Safely Reading Different Character Sets

If you are receiving FORM fields or URL parameters that are not in Latin-1 encoding, use the SetEncoding() function to specify the character set to use. For example, to correctly process Japanese SHIFT-JIS characters in FORM fields you could use SetEncoding(“FORM”, “SHIFT-JIS”). (Applies to: ColdFusion MX)

Leave a Reply