Zero width character detection in solidity - can ens import

Hi All

Zero width character detection is indeed possible in solidity.
Over at Metatag (username gaming platform) we are looking to use it.

Check out our blog on how we did it. It’s just simple byte conversion. We thought we would include this in our contract as we’ve seen many posts regarding the issues that arise from it.

https://medium.com/@metatag/metatag-how-to-detect-zero-width-characters-zwc-in-solidity-ens-bug-3d50484caa88

For the ENS community to look at.

1 Like

Thanks for posting! Unicode normalisation involves a lot more than just detecting and stripping ZWJs, however- see this thread on normalization for more details.