From c69120058ba671e1c6863796b511710f5df3efa2 Mon Sep 17 00:00:00 2001 From: smcv Date: Mon, 8 Sep 2014 18:25:00 -0400 Subject: [PATCH] possible debugging aid --- ...non-ascii_characters_in_body_in_web_interface.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn b/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn index 1722c0f6e..e80c52ba6 100644 --- a/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn +++ b/doc/bugs/garbled_non-ascii_characters_in_body_in_web_interface.mdwn @@ -60,6 +60,17 @@ Clicking on the Cancel button yields the following warning: Error: Cannot decode string with wide characters at /usr/lib/x86_64-linux-gnu/perl/5.20/Encode.pm line 215. ~~~~ +> Looks as though you might be able to get a Python-style backtrace for this +> by setting `$Carp::Verbose = 1`. +> +> The error is that we're taking some string (which string? only a backtrace +> would tell you) that is already flagged as Unicode, and trying to decode +> it from byte-blob to Unicode again, analogous to this Python: +> +> some_bytes.decode('utf-8').decode('utf-8') +> +> --[[smcv]] + The apache logs yield: ~~~~ -- 2.39.5