hmm... where does this come from? What kind of invisible character is that?
Apparently it is a non-breaking space
makes sense for a currency as you don't want the symbol moving onto a new line
Then tell your expected string to have this non-breaking utf-8 space
I did it the other way round to be honest and stripped it out 😛
I did consider doing what you suggest, but I had already done it the other way and couldn't be bothered to change it!
i think we need to move away from using number_format in the currency logic in silverstripe soon, in order to support proper i18n for currencies. not sure if that get rid of this problem but it sounds like it would. relevant thread: https://github.com/silverstripe/silverstripe-framework/issues/8216
Affected Version 3., 4. Description In some locales, currencies use different separators, eg in Dutch (Netherlands) we use '€1.000,00' (as opposed to '$1,000.00'). The Currency fiel...Hide attachment content
@robbieaverill I don't think so. I am using
NumberFormatter which should format currencies correctly and is used in
DBCurrency would be great, basically I have had to work around the facy that
DBCurrency is not great in most of my code!
yeah 😞 ok