Write Line: No data is available for encoding 1252

Have an automation that i have transferred over to Windows from Legacy windows

We scrape a credit card number that ends up with double spaces between all 4 digits

xxxx xxxx xxxx xxxx

used to use

.replace(Chr(160),“”)

whihc worked fine.

Now under Windows Compatabilty I just get
“Write Line: No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.”

have a look here:

Thats for invoke methods im just trying to alter a string :frowning:

It works though… but it can’t be that complicated to remove spaces from a scraped string…

mybe you recheck the post and the link to the other topic within as it is about registering the Encoding