--> -->
 
 
UnicodeEncodeError
Python 3.5.2: /usr/bin/python
Mon Dec 11 00:57:01 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/test/index.py in ()
     17 response = requests.get(url)
     18 arrivals_soup = BeautifulSoup(response.text, 'html.parser')
=>   19 print(response.text)
     20 
     21 
builtin print = <built-in function print>, response = <Response [404]>, response.text = '<?xml version="1.0" encoding="utf-8"?>\n \r\n<!--?p...his line -->\n </div>\n </div>\n</body></html>\r\n'

UnicodeEncodeError: 'ascii' codec can't encode character '\xe7' in position 1881: ordinal not in range(128)
      args = ('ascii', '<?xml version="1.0" encoding="utf-8"?>\n \r\n<!--?p...his line -->\n </div>\n </div>\n</body></html>\r\n', 1881, 1882, 'ordinal not in range(128)')
      encoding = 'ascii'
      end = 1882
      object = '<?xml version="1.0" encoding="utf-8"?>\n \r\n<!--?p...his line -->\n </div>\n </div>\n</body></html>\r\n'
      reason = 'ordinal not in range(128)'
      start = 1881
      with_traceback = <built-in method with_traceback of UnicodeEncodeError object>