niklasb / webkit-server

[not actively maintained] The C++ webkit-server from capybara-webkit with useful extensions and Python bindings
MIT License
48 stars 38 forks source link

Fill form with utf8 data fails #27

Open quique0194 opened 7 years ago

quique0194 commented 7 years ago

I have a PR ready for this, but I need permission

niklasb commented 7 years ago

What do you mean, you need permission? Anybody should be able to create a pull request.

quique0194 commented 7 years ago

Yep I need permission to push a branch and create a PR

2016-10-18 3:32 GMT-05:00 Niklas Baumstark notifications@github.com:

What do you mean, you need permission?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/niklasb/webkit-server/issues/27#issuecomment-254442236, or mute the thread https://github.com/notifications/unsubscribe-auth/AEamvOc69yj4J7bofCFiyY7aluM74m7gks5q1IQ6gaJpZM4KZQ7b .

niklasb commented 7 years ago

What you can do is fork the repo and push to your own fork, then PR from there

On Tue, Oct 18, 2016, 17:04 José Enrique Carrillo Pino < notifications@github.com> wrote:

Yep I need permission to push a branch and create a PR

2016-10-18 3:32 GMT-05:00 Niklas Baumstark notifications@github.com:

What do you mean, you need permission?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/niklasb/webkit-server/issues/27#issuecomment-254442236 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AEamvOc69yj4J7bofCFiyY7aluM74m7gks5q1IQ6gaJpZM4KZQ7b

.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/niklasb/webkit-server/issues/27#issuecomment-254536503, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFyY0LYCDm7yphZ7DczksI1zlaYXQkkks5q1OAGgaJpZM4KZQ7b .

quique0194 commented 7 years ago

The error I was getting:

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/ubuntu/apurata/app/scripts/fetch_sbs_data.py", line 85, in fetch_sbs_data
    ret, html = get_data_from_sbs(data, proxy=proxy, tries=10)
  File "/home/ubuntu/apurata/app/lib/sbs.py", line 140, in get_data_from_sbs
    html_text = get_sbs_html(data, tries, proxy=proxy)
  File "/home/ubuntu/apurata/app/lib/sbs.py", line 56, in get_sbs_html
    ).set(data["last_name_m"].encode('utf-8'))
  File "/usr/local/lib/python2.7/dist-packages/webkit_server.py", line 93, in set
    self._invoke("set", value)
  File "/usr/local/lib/python2.7/dist-packages/webkit_server.py", line 207, in _invoke
    return self.client.issue_node_cmd(cmd, "false", self.node_id, *args)
  File "/usr/local/lib/python2.7/dist-packages/webkit_server.py", line 377, in issue_node_cmd
    return self.conn.issue_command("Node", *args)
  File "/usr/local/lib/python2.7/dist-packages/webkit_server.py", line 518, in issue_command
    self._sock.sendall(arg.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)