umami icon indicating copy to clipboard operation
umami copied to clipboard

Issue with Incorrect Encoding of City Names from Cloudflare Headers

Open franyerverjel opened this issue 1 year ago • 0 comments

Describe the Bug

I am currently using Umami (self-hosted) behind Traefik as my reverse proxy, and I have Cloudflare set up above that. However, I've encountered an issue where the city names from Cloudflare headers, specifically 'cf-ipcity', are showing up with incorrect character encoding in Umami's analytics. The city names are displayed with garbled accents, like "Chía" instead of "Chía".

This is the header received from Cloudflare:

image

I've verified that both Traefik and Umami are set to handle UTF-8 encoding, but the issue persists. The headers are possibly being misinterpreted somewhere between Cloudflare, Traefik, and Umami.

Database

PostgreSQL

Relevant log output

No response

Which Umami version are you using? (if relevant)

2.11.2

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Docker

franyerverjel avatar May 02 '24 13:05 franyerverjel