I was just thinking a little about functions that map disconnected sets in $\mathbb R^n$ onto connected sets in $\mathbb R^n$.
If a function does something like that it seems to me that such a function must be everywhere discontinuous, but I do not have some nice argument at this moment to show that indeed must be like that.
Also, it should be some special disconnectedness, because we know that not all everywhere discontinuous functions exhibit such behavior.
But, at this moment, it seems to me that it could be that such a function can be somewhere continuous, but I do not have terms right now to describe how much discontinuous is a function that is somewhere continuous and somewhere discontinuous.
Observe that if we take some countable number of points in $\mathbb R^n$ that then such function must map that countable set of points onto a single point, because, if countable set is mapped onto more than one point then a disconnected set would be mapped onto disconnected set.
This means that the set $\mathbb Q^n$ is mapped onto a single point.
Now, if $f$ were to be continuous then we could extend by continuity that $f$ from $\mathbb Q^n$ to $\mathbb R^n$ and conclude that only continuous functions that map closed disconnected sets onto closed connected sets are constant functions.
So, we should dwell in the space of non-continuous ones in order to find characterization of such functions.
Somebody surely can tell much more about this problem of ours.
To clarify, yes, in this question I mean that function maps every disconnected set onto some connected set.