Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support or ignore UTF byte order marks #12

Open
loganfsmyth opened this Issue · 1 comment

2 participants

@loganfsmyth

Just helped someone with an issue they were running into because their stream had byte order marks, which the encoding regex was choking on. The regex for the <?xml... tag uses /^</, but with the byte order marks, that fails to match.

More info here:
http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8

And if you want an example, the issue came up here:
http://stackoverflow.com/questions/9151109/read-xml-hosted-file-with-nodejs

@nwhite89

thanks again for your help on this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.