Hi Patrick,
the answer is simple, but also complex.
so yes, there is a method you can use, p_web._Unescape(string,[flags])
as in
prodcat = p_web._unescape(prodcat)
that's the simple part. The more complex part is that the "kind of encoding" does matter.
In this case it looks to me like the incoming string is utf-8 encoded. Now you _may_ be able to pass this directly
to SQL - I guess that depends on whether SQL is expecting utf-8 encoding or not.
If not, you need to convert that to ANSI. There is a StringTheory method to do this, or you can use the
p_web.UtfToAscii method.
prodcat = p_web.UtfToAscii(p_web._unescape(prodcat))
Cheers
Bruce