encoding problem in the loggin