Years ago I've seen on the Internet a mathematical function that converts any letter/word, i don't remember exactly, into a number. The idea is that the function generates infinitely different output, and anything can be found/located on this infinity, like infinite monkey theorem. Now I cannot find this function, could you please remind it?
Update
The Q is not about some text encodings for software or smth like this. There probably was a couple of functions – one function describes a plane discrete space with X defined on (-∞;+∞), and Y defined on [0; N], like an infinite-wide picture of pixels. And another function takes a string and returns a number Z which is the start (a value of the X axis) of the string in the picture of the first function. I don't remember where I saw this function, probably it was YouTube or some elective course the longest time ago.
[Edit:] Actually, after your edit, I think you might be looking for a different thing, namely Tupper's self-referential formula.
I'll leave my original answer in place, since it's a similar concept.