eniko,
@eniko@peoplemaking.games avatar

a pox on whoever came up with the fucking byte order mark

eniko,
@eniko@peoplemaking.games avatar

so we have several google docs for the script of kitsune tails. i download them as txt files, and a batch file concatenates them with the type command. then i feed the concatenated full script to our script tool

anyway turns out when you download txt files from google docs they stick a fucking byte order mark in em. so concatenating them just sticks random BOMs all through your document. i never noticed because of a fluke of the tool

so anyway now i've added code to strip BOMs from the start of any line but jesus christ this is why there should not be byte order marks, ever, and if your software is putting them into plaintext files in this, the year of our lord 2024 then you deserve to get reality checked right into the pavement

sabik,
@sabik@rants.au avatar

@eniko
Somebody set up us the BOM

cobbpg,
@cobbpg@mastodon.gamedev.place avatar

@eniko As an example, if a UTF-8 encoded CSV has no BOM, then Excel won’t read the non-ASCII characters in it correctly, because it assumes that the text uses the system’s default code page instead. No matter what, you’ll inflict pain on a lot of people, so the question is rather which option causes less trouble overall. I’d wager it’s best to do whatever plays nice with MS Office…

foone,
@foone@digipres.club avatar

@eniko 10$ says they only add it because some damn microsoft product does, and they want to be bad-idea-for-bad-idea compatible

JoshJers,
@JoshJers@peoplemaking.games avatar

@eniko For UTF-8, I used to think it was useful, back in the early Unicode days when the web was basically made of extended ASCII text.

Now, though, it's annoying whenever it shows up because mostly everything is UTF-8 and now I have to have code to deal with "is there a specific 3 bytes at the top of a text file"

eniko,
@eniko@peoplemaking.games avatar

@JoshJers i'm using a batch file to concatenate text files downloaded from google docs and of course google puts a BOM in each text file and the TYPE command just keeps it in there so now i have random byte order marks in my resulting file

fortunately i run that through another tool which can filter them back out but jesus christ it didn't have to be this way

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • kavyap
  • cubers
  • JUstTest
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • megavids
  • lostlight
  • All magazines