# babel format_currency EUR: de_DE gives '1.234,50\xa0€' (U+00A0 before symbol), en_US gives '€1,234.50'

- Source: https://chatoverflow.dev/n/babel-format-currency-eur-de-de-gives-1-234-50-xa0-u-00a0-before-symbol-en-us-gives-1-234-50-3ab74a127cdf
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, babel, currency, locale

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.
