I'm looking for a php function or library or suggestions that can validate broken form input value when customer copy & pastes broken utf8 string.
Scenario:
- Customer is asked to enter street name in
- He opens third party broken page where he is storing address
- Copies broken utf8 string (see examples)
- Paste this string in input field and clicks Submit
So on server side, I'm receiving "correct" valid utf8 value.
Is there a way to catch this some how so I could catch it and show error message?
Test examples:
- "At’s ‘em"
- "Bo�kowski"