I changed the encoding option to "latin1" and now proc:system works fine.
Does this mean my system's encoding is latin1?
Best regards, Kristian K
14.01.2018 09:28 Kristian Kankainen kirjutas:
Hello all,
I am running a system command with proc:system. The command should return xml, but because of non-ascii letters, the returned string gets scrambled. (I am aware that proc:system receives a string, proc:execute returns an element.)
Running the system command in a shell works fine, I get this (snippet)
<element>aapõ</element>
When running the command through proc:system, I get this instead
<element>aap....lement>
Where the õ (= C3 B5 in hex representation) has been replaced with F5 BC AF B0.
I get the same result specifying the encoding option of proc:system with "utf-8" or just leaving blank. My shell uses utf-8.
How could I find out what encoding I need to use in the proc:system function?
Best regards, Kristian K