getting different value when setting the variable by session

by matching pattern l am getting the matched value as
>X3
but when l am setting this in a variable and fetching it on a page is shows %26gt%3BX3
thats why the system is not taking the value right

can you help me how can l write or set the exact value l am getting

I'm not sure I follow the

I'm not sure I follow the question. So let me know if I'm off base.

The value >X3 can be HTML encoded to be >X3, and if the HTML encoding is URL encoded you get %26gt%3BX3.

Therefore I assume you are scraping a value that looks like >X3, but in the HTML source it is encoded. You an call a method to un-encode before you use it as a parameter, and that should do it ...

If I'm wrong, please get me some more information and we'll try to help you.