Skip to main content
Question

How to create a file with non-standard encoding (wp1252) ?

  • September 8, 2024
  • 2 replies
  • 34 views

wecker

I need to create a file with wp1252 encoding out of a string that I generate in my Zap and then save it in google drive. 
 

However, when I convert the string with Python into the correct encoding, Zapier can’t work with it as return value and wants my Python code to output an utf-8 encoded string.

 

Apparently I also can’t create a temporary file with Python and access it in the next step (or at least I couldn’t figure out how, even with the Zapier documentation and the built-in AI chatbot).

Does anyone have an idea of how I can achieve my goal of creating a wp1252 encoded file with Zapier and then save it in google drive?

Thanks in advance!!
 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34032 replies
  • September 9, 2024

Hi @wecker 

Have you tried asking ChatGPT for help with configuring the code?


wecker
  • Author
  • Beginner
  • 1 reply
  • September 9, 2024

Yes, I did.

But the python code is not the problem - I can encode it, but Zapier can’t use the wp1252 encoded string and pass it to the next step.

Furthermore, just creating a file with the python code doesn’t work as this file apparently can’t be used afterwards (and I’m not even sure if it actually creates a file). 
- But just to make sure: is it possible to save files with code and then use it in the next step? I didn’t find anything about it in the documentation and the Zapier-AI bot is not helpful. 


So I either need to find out how to pass a wp1252 encoded string between steps, how to create a file with code and then upload it to google drive or any other workaround.