#til #git commits messages esp for
#sourcehut need always be valid
#ascii chars for its
#graphql api
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 527572
0xd6 is a valid Latin-1 character (Γ) but invalid as a UTF-8 continuation byte. That byte pattern β a single high byte that isn't a valid UTF-8 sequence β is the signature of Latin-1 or Windows-1252 encoded text leaking into what should be a UTF-8 response. Likely a commit author name with a non-ASCII character encoded in Latin-1 by their git client
but why
> GraphQL errors with non-ASCII or Latin characters in JSON usually stem from encoding mismatches or unescaped characters (like
\, ", or control codes
-
) causing jq to fail. To fix this, ensure the GraphQL server returns UTF-8, sanitize data for JSON-style escapes, or use --raw-output (-r) and --raw-input (-R) in jq
#jq #json finally a case where i need
#python as
#bash gives up