Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:healthsurvey.uk
I ran this command: certbot -h reconfigure
It produced this output:certbot -h reconfigure
An unexpected error occurred:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 2444: ordinal not in range(256)
My web server is (include version): apache httpd
The operating system my web server runs on is (include version): AlmaLinux 9
My hosting provider, if applicable, is: simply hosting (UK)
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.11.0
Well, certbot is at 3.something now, so there's a fair chance the issue has been fixed in one of the many releases between what you're running and what's current (edit: fewer releases than I'd remembered, apparently, but 2.11.0 is still 9 months old). But the place to report issues with it would be their Github:
That error is because of a unicode character being detected in a file. u2019 is a right quotation mark - ’.
This likely happened due to copy/pasting from a web source or document editor, which often "upgrade" an ascii quotation mark into unicode.
I'm not sure how certbot would pick this up in a configuration file, but it's possible. This type of error is more common in a Python script, not a file opened by a Python script (Certbot is written in Python). A likely source to first check would be in a plugin script, such as if you have a custom script for DNS renewals. I would check your auth scripts (if any) first, then search the certbot and nginx/apache configuration directories for this character.