florianMo opened a new pull request, #845: URL: https://github.com/apache/ofbiz-framework/pull/845
Fixed: Support non-breaking spaces in numeric strings (OFBIZ-13168) Explanation In forms, numeric fields are represented by an input with type "text", which allows user to enter/paste all characters, including non-breaking spaces ('\u00A0', '\u202F', '\u2007'), like "29 000" (the space is `\u202F`). More specifically, a user can copy/paste a string from an external tool which uses non-breaking spaces as a thousands separator, and expect that a visually correct string will be correctly interpreted by OFBiz. OFBiz uses `java.text.NumberFormat::parse` method, which does not support non-breaking spaces : characters after this kind of spaces are simply ignored, and "29 000" becomes "29". This PR only illustrates the problem and a way of fixing it, I'm not sure that this would be a good solution (maybe handle submitted strings elsewhere ? maybe more upstream ?). Thanks: Nereide team -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ofbiz.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org