Friday, February 12, 2010

Interesting clue about SharePoint Field Internal Name

Hi All,

Just came across to an interesting clued about SharePoint field internal name. We all know that SharePoint replaces space character in field with _x0020_ character and it is because XML element cannot have space in it I guess.

So simplest way to deal with this is to use two static methods.

1) System.XML.XmlConvert.EncodeName() to encode
2) System.XML.XmlConvert.DecodeName() to decode

Hope this will help somebody someday.


René Hézser said...

Thank you very much!

Thakhi Shaik said...

%5F is not working for decode.
for ex:%5Fx0063%5Fol1

SharePoint Kings said...

what is your column name?

Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to