Modified the CharEncodingComparison example program.