Whatever message this page gives is out now! Go check it out!
ToString(value[, encoding]) |
Parameter | Description |
value | Value to convert to a string; can be a simple value such as an integer, a binary object, or an XML document object. |
encoding | The character encoding (character set) of the string. Optional for binary data, Generates an error if used for a simple value or XML document object.The following list includes commonly used values:
For more information on character encoding, see: www.w3.org/International/O-charset.en.html. The default value is the encoding of the page on which the function is called. See cfcontent. |
<cfscript>
myString="Hello ColdFusion, how are you?"
base64Value = toBase64(myString)
binaryValue = toBinary(base64Value)
stringValue = toString(binaryValue);
writeOutput(stringValue);
</cfscript>