Comments (2)
jq doesn't handle UTF-16 documents. The BOM makes no sense at all in UTF-8 documents, how was that document generated?
On the other hand, the BOM can't be misinterpreted as anything else, so it wouldn't break anything to silently ignore one at the start of the document.
from jq.
From Wikipedia: "The Unicode Standard permits the BOM in UTF-8, but does not require or recommend for or against its use. Byte order has no meaning in UTF-8, so its only use in UTF-8 is to signal at the start that the text stream is encoded in UTF-8."
The JSON feed is generated by a third party and I have no control over it. But since a BOM is valid (if pointless) in UTF-8, jq should handle it, and I suppose the silent ignoring approach is just fine.
from jq.
Related Issues (20)
- OT: What versions of arm require `armel`? HOT 3
- We should add an info that release files are bare executables. HOT 1
- strftime produces corrupted characters in windows HOT 7
- Wrong math for big integers HOT 9
- [Feature] Add ~/.jq.d to default module search path HOT 6
- Python bindings HOT 1
- Running `jqtest` triggers UBSAN errors HOT 1
- jq_fuzz_fixed: count-down loop times out if the input is a big number HOT 10
- Strange jq performance problem HOT 14
- heap-buffer-overflow in jq1.7 at decNumber.c HOT 3
- CVE-2023-49355 status ? HOT 2
- Tests don't work in non-decnumber builds
- Feature Request - Full Path Json output HOT 5
- Broken non-Latin output HOT 14
- Version 1.7.1 not working well on XcodeCloud HOT 4
- 1 test fails on WSL Debian HOT 14
- Version number pattern
- Base64d filter is not working as expected. HOT 2
- Allow user to control colors of int/bool/number HOT 2
- Incorrect results when subtracting two long numbers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jq.