dsheroh has asked for the wisdom of the Perl Monks concerning the following question:
Now I have triple- or quadruple-encoding (I'm not sure which) issues with UTF-8 characters on the starman box, but UTF-8 works perfectly on the apache box.
I get the exact same results regardless of whether I talk to nginx or go to the starman server directly, so I'm confident that nginx is not the issue. It's also plainly not the database because both of them are connecting to the same database. The webapp source directory is on the same git branch and commit with no untracked files on either machine, so they should be running identical code and their config files have the same md5sum. As far as I can tell, apache/CGI vs. starman/PSGI is the only difference between them.
As an example, doing a search in the webapp for "ångbåten" returns 10 hits for "ångbåten" on the apache server, and 0 hits for "ÃÂ¥ngbÃÂ¥ten" via starman. Since it's triple/quadruple-encoded and returns no hits, I figure it must be getting double-encoded on the way in (when it reads the search terms), then double-encoded again on the way out (when displaying the results).
Any ideas for what I might have messed up in either the starman startup or the PSGI file to cause this issue?
Bonus Question: Is there any way to get starman to put timestamps in its error log? It would be very useful to be able to tell whether an error just happened or if it's three days old.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: UTF-8 and PSGI/Starman vs. CGI
by Your Mother (Archbishop) on Mar 21, 2018 at 16:39 UTC | |
by stevieb (Canon) on Mar 21, 2018 at 16:49 UTC | |
by Your Mother (Archbishop) on Mar 21, 2018 at 17:14 UTC | |
by karlgoethebier (Abbot) on Mar 22, 2018 at 11:39 UTC | |
by dsheroh (Monsignor) on Mar 22, 2018 at 12:34 UTC | |
by stevieb (Canon) on Mar 21, 2018 at 17:33 UTC | |
by dsheroh (Monsignor) on Mar 22, 2018 at 08:06 UTC | |
by Your Mother (Archbishop) on Mar 22, 2018 at 14:42 UTC | |
by dsheroh (Monsignor) on Mar 23, 2018 at 11:07 UTC | |
Re: UTF-8 and PSGI/Starman vs. CGI
by 1nickt (Canon) on Mar 21, 2018 at 15:55 UTC | |
Re: UTF-8 and PSGI/Starman vs. CGI
by Anonymous Monk on Mar 22, 2018 at 12:34 UTC |