chang encoding