Are you tired of handling dirty characters in SharePoint such as “_x0020_, _x002f,… “ etc ?  Suppose if you know what to be done, then please ignore this post.  I was breaking my heads to find a solution for this, even without knowing there is a API method to handle this… Smile

 

Yes, this can encoded/decoded using the respective methods below:

XmlConvert.EncodeName = converts all the special characters to equivalent _x00xx_

XmlConvert.DecodeName = converts all the _x00xx_ back to the special characters.