When entering accented characters into an input type email in Chrome, it changes the value to something strange.
When entering the email: test@Bücher.ch th
For others who face this problem again, I suggest use punycode
npm package.
https://www.npmjs.com/package/punycode
I think only Chrome encodes email into punycode. There is no way to prevent Chrome from punycoding. You just let her do her work and decode punycode in backend.
const punycode = require('punycode')
let data = request.only(['email'])
data['email'] = punycode.toUnicode(data['email'])
Worked like charm in adonis and my headache disappeared.