We prove that a preference relation which is continuous on every straight line has a utility representation if its domain is a convex subset of a finite dimensional vector space. Our condition on the domain of a preference relation is stronger than Eilenberg (1941) and Debreu (1959, 1964), but our condition on the continuity of a preference relation is strictly weaker than theirs.