Execute Shell Script - Encoding

I have a simple shell script for making a curl request, which sends a JSON to specified webhook.

The thing is, contents of this JSON includes special characters like "ąśćęłń etc.". Those characters are passed with wrong encoding (or something like that, I'm not sure).

Result is visible on this video.

As you can see for example "ś" is converted to something like "s`"

Do you have any suggestions for me? Even keywords I can look for, would be really helpful.

I've found a solution.

Which is to save script to an external file first with action Write Text to File and then pass path to this file to action Execute Shell Script

You just have to make sure to set proper read & write permissions for this file.

Hey Adam,

I'm glad you found a solution.

This might help:

#!/usr/bin/env bash

export LC_ALL="en_US.UTF-8" # Because the script uses utf8 characters

-Chris

1 Like