Topic on Talk:PAWS/Flow

Problems with character encoding on paws-public

7
Mfchris84 (talkcontribs)

Having utf8 encoded special characters in the result of my python scripts, there results some problems with character encoding displaying the script (or any other file) via the paws-public url. e.g. paws-public.wmflabs.org/paws-public/User:Mfchris84/hov_id.tsv

Does anyone know this problem? Thanks in advance!

Info-farmer (talkcontribs)

if you show the script, that will be quit good to analyze the issue.

Mfchris84 (talkcontribs)

you find the script under paws-public.wmflabs.org/paws-public/User:Mfchris84/hov_id.py but the prevent misunderstanding: if i open hov_id.tsv under normal user paws-url (paws.wmflabs.org/paws/hub/user/Mfchris84/hov_id.tsv) or or download it there are no problems with character encoding. this occurs only via the paws-public URL.

Chicocvenancio (talkcontribs)

This is the browser wrongly guessing the encoding for the file. Getting the file via curl, in a utf8 encoded terminal, works. I want to setup a better viewing system for paws-public, so I'm not sure if it is worth it to do much here, but I'll check if I can get an easy fix with nginx.

Chicocvenancio (talkcontribs)
Mfchris84 (talkcontribs)
Chicocvenancio (talkcontribs)

You're welcome.