ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

core: Strip BOM in URLLoader text data

Open Mesteery opened this issue 1 year ago • 3 comments

Mesteery avatar Aug 14 '24 10:08 Mesteery

Are you sure that this is done in URLLoader, and not in ByteArray? There's already some BOM-related logic in ByteArray, so I wonder if it just needs to be extended

Aaron1011 avatar Aug 14 '24 14:08 Aaron1011

Are you sure that this is done in URLLoader, and not in ByteArray? There's already some BOM-related logic in ByteArray, so I wonder if it just needs to be extended

According to uqers, in FP, URLLoader uses URLStream, so it's done in URLStream/readUTFBytes like in ByteArray

Mesteery avatar Aug 14 '24 15:08 Mesteery

I would really appreciate a test for this!

Dinnerbone avatar Aug 14 '24 19:08 Dinnerbone