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
-----
- shell: script.sh
  register: res

- debug:
    msg: "foobar"
  when: res.stdout is search("完了") = True


script.sh <= script is in euc-jp encoding
-----
... # some code here
echo "完了"

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/96e6efe2-f64e-4162-841b-c3364441b4a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to