Existence of an embedding from the rational numbers to $(0,1)$ Is it possible to embed $\mathbb{Q}$ in $(0,1)$ (both with usual topology) ?
 A: On user10's request I'm posting an earlier comment of mine as an answer—even if it is more than overkill. Of course simply using the fact that $(0,1)$ and $\mathbb{R}$ are homeomorphic is the way to go. You can do this as suggested in Ross's answer.

Sierpiński proved in 1920 (apparently he proved it already in 1915 according to a footnote in the original article) that $\mathbb{Q}$ is up to homeomorphism the only countable metrizable space without isolated points.
In particular $\mathbb{Q}$ is homeomorphic to $\mathbb{Q}^n$, $\mathbb{Q} \cap (0,1)$ or indeed to any countable dense set in a perfect metric space.
The original paper is freely available here:
Wacław Sierpiński, Sur une propriété topologique des ensembles dénombrables denses en soi, Fund. Math. 1 (1920), 11-16 (pdf here).
As ccc points out a simpler proof along these lines would be to appeal to a result of Cantor's (I quote a comment to this answer):

[...] if you feel like using slightly less overkill, you can handle this particular problem with Cantor's theorem on the uniqueness of dense linear orders without endpoints, which I suppose can be viewed as a sort of "one dimensional" precursor to the quoted theorem of Sierpiński's.


A write-up of  Sierpiński's theorem and a few related things is e.g. contained in (jstor-link, needs university subscription):
Carl Eberhart, Some Remarks on the Irrational and Rational Numbers,
The American Mathematical Monthly, 84 (1) (Jan., 1977), pp. 32-35, MR644644.
Bruno recommends the article by Abhijit Dasgupta, Countable metric spaces without isolated points from Topology Explained, June 2005, published by the Topology Atlas which is an excellent source for everything related to topology.
A: Following  Qiaochu Yuan's comment, you can take $x \in \mathbb{Q} \to \frac{1}{2}+\frac{\arctan(x)}{\pi}$ for an explicit solution
