John "Gozzy" Godsland on Nostr: I was all ready to raise a #PHP bug for fgetcsv() then I realised the data I was ...
I was all ready to raise a #PHP bug for fgetcsv() then I realised the data I was trying to import has a random 3-byte Unicode character at the beginning. It will be a regular dump from a supplier so mb_* and string clean up to the rescue!
Published at
2025-01-16 13:21:39Event JSON
{
"id": "c9c5eb5fe08ff62657c3b56253d7b7e39f04495ae3238648a6f836e56b26f5af",
"pubkey": "e9401e8bd3e82c9f76654fa75537172fb7a60b50a166967e3825c6279d233a87",
"created_at": 1737033699,
"kind": 1,
"tags": [
[
"t",
"php"
],
[
"proxy",
"https://social.gozzys.com/users/john/statuses/113838240539693810",
"activitypub"
]
],
"content": "I was all ready to raise a #PHP bug for fgetcsv() then I realised the data I was trying to import has a random 3-byte Unicode character at the beginning. It will be a regular dump from a supplier so mb_* and string clean up to the rescue!",
"sig": "06683a4005d742e3e168e6e5bd9a1ff6b10afd20ddce0f494f47260ea84a5159485e9aad84b00310f2e4a5cf0847f6c4a21fe7fa4f65a75673e1d36364178ee5"
}