Generalize the test infrastructure. Add Chinese text to the sample.
Different applications can use different output encodings.