Skip to content

Can the station registry accept UTF-8 in a station description? #7

@tkeffer

Description

@tkeffer

In /var/log/nginx/error.log, I am seeing a lot of errors of the sort

2022/10/01 12:05:29 [error] 940#0: *105063 FastCGI sent in stderr: "DBD::mysql::st execute failed: Incorrect string value: '\xC4\x81zene...'
 for column 'description' at row 1 at /var/www/html/register/register.cgi line 429" while reading response header from upstream, client: 62.
85.109.69, server: weewx.com, request: "GET /register/register.cgi?station_url=https%3A%2F%2Fwww.wunderground.com%2Fpersonal-weather-station
%2Fdashboard%3FID=IRGASPIL3&description=Atg%C4%81zene%2C+R%C4%ABga%2C+Latvija&latitude=56.9172&longitude=24.0822&station_type=WMR200&station
_model=WMR200A&python_info=3.10.6&platform_info=Linux-5.15.0-1015-raspi-aarch64-with-glibc2.35&weewx_info=4.8.0 HTTP/1.1", upstream: "fastcg
i://unix:/var/run/fcgiwrap.socket:", host: "weewx.com"

What they all seem to have in common is the use of UTF-8 in the field description.

Perl is a mystery to me, so I can't tell if it's rejecting UTF-8 characters.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions