This question already has an answer here:
I want to know if there exist a set $ X\subset \mathbb R$ such that $X$ is
$iii)$ Has empty interior
$iv)$ Totally disconnected
$v)$ Is not countable
But $X$ has positive Lebesgue measure.
The sets that are defined with the above properties are called generalized Cantor sets.
Please could you tell me how to construct an explicit example?