About EasyMorph Tutorials & Examples Web-help

How to change charset in Web Request

Hi, I try to load XML by Web request function. Everyting is fine, but I have a problem with text charset. Is it possible to change it?

2020-11-17 09_28_15-Window

Try requesting the correct charset explicitly from the remote server by specifying the Accept-Charset header in the web request settings.

The example below shows charset utf-8 but in your case that can be something else.

image

If the remote server ignores the header, then another option would be to save the response body to a file (there is a setting for that in the “Web request” action) and then reading XML from that file using the “Import from XML” action which has a setting for encoding.

Second option, with save-load, works perferct. Thanks!

image

To learn more about EasyMorph visit easymorph.com.