umami
umami copied to clipboard
Issue with Incorrect Encoding of City Names from Cloudflare Headers
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:
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