Solving Encoding Problem