If a website doesn’t accept special characters…

Because I assume hash functions can take in any kind of data, right?

Found here