SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ( – RJ Cuthbertson Aug 14 '12 at 13:01
Check out this SO post:… 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.