Hi @danilo_inovacao, the response body is a utf-8 string, and utf-8 code set contains character codes which cannot be encoded to ascii code. It's the reason for the error. You should not encode the response body string.
And, although it's not a direct reason for the error, you are wrong on use of the re.compile method.. I therefore cannot understand what you intend to do with the re module.
See here to learn how to use the re module.
Python Documentation | 7.2. re — Regular expression operations
Hi @danilo_inovacao, the response body is a utf-8 string, and utf-8 code set contains character codes which cannot be encoded to ascii code. It's the reason for the error. You should not encode the response body string.
And, although it's not a direct reason for the error, you are wrong on use of the re.compile method.. I therefore cannot understand what you intend to do with the re module.
See here to learn how to use the re module.
Python Documentation | 7.2. re — Regular expression operations
Hi @takashi, thanks your help.
I believe that the method re.search is better to fin any words between two strings.
Thanks
As a side note: If you struggle with those kind of errors in Python, consider switching to Python 3.x in FME, that tends to make it a lot easier.