Timur
Use $ZCVT function with HTML or JS conversion tables (well it you use the built-in CNLS locales, but not those not uptodate locales mentioned here recently):
CACHE509:USER:.000118>w $zcvt("unescaped'and""","o","JS") unescaped\'and\" CACHE509:USER:.000124>w $zcvt("unescaped'and""","o","HTML") unescaped'and"
Interesting - I had no idea about this.
Thank you!
Ram�n
