![]() |
|
No such thing as a small change | |
PerlMonks |
JSON encoding errorby Bod (Parson) |
on May 09, 2024 at 13:31 UTC ( [id://11159356]=perlquestion: print w/replies, xml ) | Need Help?? |
Bod has asked for the wisdom of the Perl Monks concerning the following question: Having changed server from CentOS to Debian 12 and Perl version from 5.16.3 to 5.36.0, I am having lots of difficulties with character encoding. A topic I don't properly understand. This problem is currently manifesting itself as a failed Stripe webhook. The webhook was working fine before and now it isn't! Stripe gives me this error: I have checked the Debian encoding (I think) and it says:
Here is a very cut-down version of my code to demonstrate the problem:
If I call the webhook endpoint in browser, I get the expected JSON output but Stripe gives me the encoding error. Given that only two things have changed, server OS and Perl version, it must be one of these. Is there anything I need to do on the server to ensure that it is serving UTF-8 output correctly? There are other problems that I think are unconnected, but wise monks may find helpful as they could have the same cause...
Back to
Seekers of Perl Wisdom
|
|