Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Incorrect Encoding of City Names from Cloudflare Headers #2720

Open
franyerverjel opened this issue May 2, 2024 · 0 comments
Open

Comments

@franyerverjel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant