Continuous bijection between the real numbers and a compact T_2 space

Is it possible to find a continuous bijection $f: \mathbb{R} \rightarrow \textrm{Z}$ where $\textrm{Z}$ is a compact Hausdorff space? ($\mathbb{R}$ endowed with usual topology)

-
Yes. For example, you can take $Z$ to be a wedge of two circles, and let $f$ wrap first around one circle, then the other.
Nice counterexample. If I understand your construction correctly, the same topology could be obtained be taking the usual topology on $\mathbb R$ and change local basis at 0 to be the usual neighborhoods plus complement of a bounded closed interval. (Or, equivalently, take the one-point compactfication of reals and make a quotient space by identifying $\infty$ and 0. –  Martin Sleziak Aug 9 '11 at 11:11