The actual BOM char is being trimmed by HttpResponse.getResponseAsString
function.
We can also trim the BOM string there.
Since we are not sure if it is standard, I would vote to handle it only in
he cases we really want to, i.e. trim it just before XML parsing in
SpecFactory.

I will attach next a patch with a new testcase


On Tue, Feb 23, 2010 at 12:35 PM, <[email protected]> wrote:

> This code looks fine. Have you tried w/ the actual BOM bytes as well? We
> may as well be sure to handle both.
>
> Also... has anyone seen this particular behavior before re: BOMs
> (escaped BOM chars)? It's not clear to me if this is standard behavior.
> I don't see any particular problem supporting it in any case however.
>
>
> http://codereview.appspot.com/217102/show
>

Reply via email to