Decode Quoted-printable encoding with Windows-1255 character set

Hi all,
I have a text such as this that I get from a raw email:

=E4=E9=E9,
=EE=E4 =F0=F9=EE=F2?
=E0=F0=E9 =F9=E5=EC=E7 =F4=E4 =EE=E9=E9=EC =EE=E4=E0=E5=E5=E8=EC=E5=F7 =E5=
=F9=E5=EE=F8 =E0=E5=FA=E5 =EB eml =E5=EE=F2=E1=E9=F8 =E0=EC=E9=E9=EA.
=E0=F0=E9 =EE=F6=F8=F3 =E2=ED =F7=E5=E1=F5 PDF =F9=EC =E4=F6=F2=FA =EE=E7=
=E9=F8.
=FA=E5=E3=E4,
=F8=ED

I tried several ways to decode it - but found no way to do it in make.com

I tired using this website and was able to detect that the code I got is a Quoted-printable encoding with Windows-1255 character set.

Do you know of any service / API / function in make that will be able to get such a code and automatically identify it and decode it - without providing the encoding and character set?

Regards,
Ram

Welcome to the Make community!

You might want to try the “Convert the encoding of a text” module.

Screenshot_2023-12-30_201202

For more information, see https://www.make.com/en/help/tools/tools#convert-the-encoding-of-the-text

If you need further assistance,

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

2 Likes

Hello, @Ram
I hope everything is going well for you.

You can decode the string above in one of two ways:

  1. To decode the string, utilize the AWS Lambda function by using (Invoke lambda function module). To accomplish this, write the Python code in the lambda function on AWS and then call the function with the desired raw text (Input). You will receive the desired outcome.

  2. To Invoke the lambad function on AWS, you may alternatively utilize the HTTP module instead of the Lambda module. Other actions are the same as those mentioned above.

Lambda Module:-
image

String to pass inside the body:-

output of your raw string:-

Pyhton Code for the above:-

import quopri
encoded_string = “input string to decode”
decoded_bytes = quopri.decodestring(encoded_string.encode(“utf-8”))
decoded_string = decoded_bytes.decode(“Windows-1255”)
print(decoded_string)

Let me know if you need any assistance with this.

2 Likes

Hi @samliew
Thanks for your reply.
I tired using the “Convert the encoding of a text” module before opening this post - but unfortunately it’s not working.

There is nothing really going on in the module output - but there it is

Thanks for your help and happy new year,
Ram

Hi @kaustubh_dalvi
until now I had no experience with utilize AWS Lambda.

I guess I need to open an account on amazon and setup the environment for that?
Do you have the relevant instructions for this?
Is there a free tire while using AWS Lambda?

Thanks for your help and happy new year,
Ram

Hi @Ram ,
Happy New Year,

Yes, exactly. To receive a free one-year subscription that includes a free AWS Lambda tire, you must first register an account on AWS.

Let me know if you need any assistance with this.

Thanks. I will check it out.
it’s a shame I cannot do it in make.com directly…
Any way - Happy new year.

1 Like

Hey , @Ram
I suggested the correct solution, but unfortunately, it seems this solution doesn’t involve Make (inbuild module) directly. Instead, you can utilize a Lambda function (on make.com).

If you find my solution satisfactory, please mark it as solved.

2 Likes