Can we use node-fetch or the https functionality in a widget

We have a widget that sends data to gov notify using curl (cs.curl).
We’re having some problems with non-ascii characters and I wondered if I can use “https” or “node-fetch”.
I’ve tried a “require” but it didn’t work.

Hi Mark,

Apologies for the late reply, have you managed to resolve your problem?
You use encodeURI() and encodeURIComponent() js functions to escape chars in urls or query strings.
I wouldn’t expect you to have any issues in the body.

Best Wishes

Adam Mills