In my Scala web app I am parsing a URL parameter which normally contains hyphens. In some instances the parameter is coming through with non-ascii hyphens, i.e.
11157‑007‑9120‑9
instead of
11157-007-9120-9
This is causing a downstream system to explode...
What is the best way of converting these non-ascii characters? There are other non-ascii characters as well as the hyphen...