Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Rogue character(s) at start of JSON file

by GrandFather (Saint)
on Jan 17, 2023 at 02:33 UTC ( [id://11149621]=note: print w/replies, xml ) Need Help??


in reply to Rogue character(s) at start of JSON file

UTF-8 text files with Byte Order Mark may be of interest.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: Rogue character(s) at start of JSON file

Replies are listed 'Best First'.
Re^2: Rogue character(s) at start of JSON file
by Aldebaran (Curate) on Jan 17, 2023 at 05:25 UTC
    UTF-8 text files with Byte Order Mark may be of interest.

    The OP in that thread just doesn't want to believe ikegami, who posts his solution essentially 3 times Re^3: UTF-8 text files with Byte Order Mark. I've seen it more than once that people just don't want to believe him. Usually something involving representations.

      I've seen it more than once that people just don't want to believe him

      Sometimes, we hear or read things that just don't make sense. Our natural instinct is to reject them, especially if they go against what we hold to be true.

      However, there are a few monks that when they say something that seems wrong, cause me to carefully check that I understand what they are saying and then question my own background knowledge. ikegami is one of those monks! That's not to say that anyone is infallible...just that the words of some monks cause more self questioning than others because they are properly saying something wise or, at the very least, something I can learn from.

        Sometimes, we hear or read things that just don't make sense. Our natural instinct is to reject them, especially if they go against what we hold to be true.

        The technical term is Confirmation bias. It can have deadly consequences in some situations. This is especially true when working with heavy machinery, like in aviation. There have been cases when a crew read a map wrong and then ignored all the warnings of their flight instruments that they were headed right into a mountain, stuff like that. Or running out of fuel, because they convinced themselves that all the warnings were fake.

        See Air Transat Flight 236 as an example. They had to glide an Airbus A330 for 121km after basically ignoring a fuel leak. The first computer warnings didn't make sense to them, so the pilots determined there was a major computer glitch but the aircraft itself was OK. After that, they ignored all the other problems that popped up on their displays until they run out of fuel.

        PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Re^2: Rogue character(s) at start of JSON file
by Bod (Parson) on Jan 17, 2023 at 22:15 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-20 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found