crack icon indicating copy to clipboard operation
crack copied to clipboard

If the XML says it is UTF-16, Crack parses it into an empty hash.

Open ianterrell opened this issue 16 years ago • 1 comments

Is this desired behavior?

>> Crack::XML.parse("<hi></hi>")
=> {"hi"=>nil}
>> Crack::XML.parse("<hi></hi>")
=> {}
>> Crack::XML.parse("<hi></hi>")
=> {"hi"=>nil}

ianterrell avatar Jun 01 '09 18:06 ianterrell

Hi, I'm jumping in here to help maintain this gem for John. Can I ask what version of Ruby?

pengwynn avatar Feb 21 '10 02:02 pengwynn

I wasn't able to reproduce this issue on current master. Feel free to reopen the issue if it still occurs for you

kiskoza avatar Jan 29 '24 09:01 kiskoza