Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a password in this section which contains & operator , but its not taking , its giving an error ,i also tried to decode it , but still credentials are not working , what should i do to support & opertaor
Posted
Updated 12-Jul-13 0:19am
v2
Comments
ArunRajendra 12-Jul-13 6:44am    
Can you post the config section and the code how you are reteriving it?

1 solution

Since it is an XML file you can't directly place "&", instead you could use ( & a m p ; ). Please remove the space in between as I can't post the string since it convert that also to just "&". This will work. I have given the reference below for the xml strings for the corresponding special characters for your reference.


& - & a m p ;
< - & l t ;
> - & g t ;
" - & q u o t;
' - & # 3 9 ;

Note: space intentionally added in between for the display.

reference: http://www.devx.com/tips/Tip/14068[^]

Thank You,
Siju Thomas.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900