In this paper we study the Dirichlet problem for nonlinear elliptic equations with variable exponents in Sobolev spaces with variable exponent. We show that for every continuous function $g$ on the boundary there exists a unique continuous extension of $g$.