I need to convert a string to UTF8 encoded format, and I'm not sure how to do this.
Is there any function in ColdFusion to convert a string to UTF-8, for example, on this website ?
For example, typing in "stackoverflow.com/questions/ask" on the above website gives the result:
\ x73 \ x74 \ x61 \ x63 \ X6b \ x6F \ x76 \ x65 \ x72 \ x66 \ x6C \ x6F \ x77 \ x2E \ x63 \ x6F \ x6D \ x2F \ x71 \ x75 \ x65 \ x73 \ x74 \ x69 \ x6F \ x6E \ x73 \ x2F \ x61 \ x73 \ X6b
I am not very good at coding, however my instructions were to encode a string in UTF-8. The example I gave gave, for example, the encoded result below.
/ re / g / 434 / t // 4r3 / t434 / 4t / T3 / 3 / 4t / 43tt / 53 /
I'm not sure if this is a real representation of the encoded string or if it was just printed to give a visual example. Is there a format that looks like this? And is it different from the format from the first example?
Thank!
source
share