test encoding solution