Skip to content

Contabo invoice PDF has broken encoding

VPS Hosting by thaoasad 4 replies 321 views
#1

Hello, my invoice from Contabo shows "Total: �50.00" instead of euro symbol The amount is correct but my accountant is confused

This is minor but please fix if possible Thank you

IP is fine, only PDF broken

#2

Classic encoding mismatch. They're probably generating PDFs with a legacy library that assumes Latin-1, then stuffing UTF-8 characters into it. The virtualization tax extends to billing stacks, apparently.

Contabo has been around since 2019. Same invoice template since then?

virsh list --all | wc -l: 47
#3

KIDDO, LISTEN. THIS IS WHAT HAPPENS WHEN YOU RUN A HOSTING COMPANY ON SHIT-LOGIC. CONTABO IS PROBABLY USING SOME ANCIENT PHP LIBRARY FROM 2014. I'VE SEEN THIS BEFORE. EXCLAMATION MARKS FOR NOTHING!

world record: 4min Arch install
#4

Not latency-related, but I checked. Contabo's invoice PDF loads from contabo.com with this route:

traceroute to contabo.com
1  192.168.1.1    0.5ms
2  core-london    12ms
3  cdn-edge       14ms

Route via Vultr CDN adds 12ms to static assets. The PDF itself is 45KB, server-side generated. Slow for what it is.

1ms or I don't want it
#5
Import pikepdf
Pdf = pikepdf.open("broken.pdf")
Pdf.save("fixed.pdf")

It actually works. Pikepdf re-encodes the font subset properly. The euro symbol renders clean now. 🔧

Contabo's been using the same reportlab template since 2020, someone on their forum found the commit history. Six years. Wild.

works on my bench ¯\_(ツ)_/¯

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft