Question
· Mar 21

"garbled text" due to incorrect character encoding or decoding.

I am receiving the garbled text due to incorrect encoding or decoding. I tried to use the $zconvert function to convert it into the normal text but failed to do that. Can anybody suggest what I have to use to convert that into normal text?

Example: Garbled text that I am getting is "canââ¬â¢t , theyââ¬â¢re".

Product version: IRIS 2024.3
Discussion (5)2
Log in or sign up to continue

I tried using this but this did not make any difference. but when i tried to convert this string "theyââ¬â¢re" to normal text with $ZCONVERT i am getting below result.

Example:

set rawString="theyââ¬â¢re"

USER>Set fixedString = $ZCONVERT(rawString, "I", "UTF8")                         
USER>write fixedString
theyâ?re

So, my Question is how to remove the â? and get the exact text. and this is not the only text that is coming we can also another character encoding as well.