Skip to content

Instantly share code, notes, and snippets.

@possibilities
Created February 2, 2026 00:39
Show Gist options
  • Select an option

  • Save possibilities/042c8446ccd9e4bcc06572d0636c65db to your computer and use it in GitHub Desktop.

Select an option

Save possibilities/042c8446ccd9e4bcc06572d0636c65db to your computer and use it in GitHub Desktop.

Plan: Standardize UTF-8 encoding in knowctl

Summary

Standardize .encode() calls to .encode("utf-8") for consistency in MD5 hash calculations.

Changes

File: bin/knowctl

Line Current Change to
218 body.encode() body.encode("utf-8")
585 body.encode() body.encode("utf-8")
647 body.encode() body.encode("utf-8")

Verification

Run knowctl sync-topics - behavior should be unchanged since UTF-8 is the default encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment