Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I found out that, when I create fields programmatically with rather small internal names, the very first character of that internal name will get encoded.

For example: BN67 becomes %5Fx0042%5FN67 or _x0042_N67. The character B has been encoded. Why does SharePoint do this?

So far, longer field names have not produced similar behavior.

share|improve this question
FYI, that isn't ASCII. 'x0042' is Unicode (marathon-studios.com/unicode/U0042/Latin_Capital_Letter_B). –  RJ Cuthbertson Aug 14 '12 at 13:01
Check out this SO post: stackoverflow.com/questions/1600647/… Doesn't answer why this happens, but it gives you a method to decode the string for comparisons. –  RJ Cuthbertson Aug 14 '12 at 13:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.