Selenium webdriver and unicode

前端 未结 2 1994
心在旅途
心在旅途 2020-12-14 19:19

It\'s my 2nd day with Selenium 2 library and the pain with Unicode never seem to subside.

I\'m just doing the most basic operation, want to print the page source:

2条回答
  •  天涯浪人
    2020-12-14 19:44

    Instead of print(string), use print(repr(string)) to return a printable representation of the object.

提交回复
热议问题