Shahed's blog

Sharing my thoughts and work

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 0 Stories | 44 Comments | 10 Trackbacks

News

Archives

Post Categories

I was making a simple rss reader and for some feeds, I was always getting this error “' ', hexadecimal value 0x1F, is an invalid character. Line 1, position 1.”

finally, I found that, well-formed xml does not allow '0x1F'. The range of well-formed xml is

Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]

in my case, it was caused for allowing 'gzip' in the request header.

posted on Wednesday, March 22, 2006 2:07 AM

Feedback

# re: ' ', hexadecimal value 0x1F, is an invalid character. Line 1, position 1. 9/17/2007 9:10 AM OddesE
Also often caused by the BOM, a marker byte as first character in Unicode (UTF-8, UTF-16) files.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: