setting encoding