Convert ISO-8859-1 to utf-8

Dear people,

I have an ISO-8859-1 encoded XML from a web request can’t manage to convert the string to a utf-8 encoded string. That scumbles all the umlauts after parsing it to JSON. Has anyone an idea how to how I might bring the string to the correct format?

Thanks in advance!

Look at iconv command line program.

Use man iconv for more information.

Thank you for your suggestion. Could you elaborate on this? I don’t have a cli on hand during runtime in scriptable. there is a npm version of iconv but that would mean to implement node. what did you have in mind how to use iconv in scriptable?

thank you!

Opps sorry I missed that you want solution in scriptable. I don’t know does scriptable has codepage conversion.