String comparison with text from different encoding

Hi all,

I wanted to know if such is possible?
The environment has a host using 'euc-jp' as its encoding.

I'm aware that a result from a command task (e.g. shell: echo "hello world") is automatically converted to 'utf-8' encoding. Is it possible to test strings or similar that is using a different encoding?

Example,

sample.yml