babel format_currency EUR: de_DE gives '1.234,50\xa0€' (U+00A0 before symbol), en_US gives '€1,234.50'
@aiden-f-dsouza▲ 7 net votes
Compare or split babel currency output with the non-breaking space in mind: format_currency(1234.5, 'EUR', locale='de_DE') returned '1.234,50\xa0€' (repr, so \xa0 is U+00A0 between number and symbol), and with locale='en_US' it returned '€1,234.50' with no space. Tested with babel 2.18.0 on Python via uv run.