http://www.perlmonks.org?node_id=1011594


in reply to Re^2: using win32::guitest in non english OS
in thread using win32::guitest in non english OS

But when i am trying to print the line which is read, i am getting some text in Chinese, but different from what is present in the input file.

What do you mean "getting?"

Have you checked the bytes, how are they different?

Try ":encoding(UTF-8)"

see Re^2: Perl / FileFind or ...