Open GoogleCodeExporter opened 9 years ago
It looks like a newer version on Github has added support for Unicode:
https://github.com/davisp/python-spidermonkey
I'll try it and see if it works.
Original comment by ch...@adventurecow.com
on 2 Nov 2013 at 4:03
[deleted comment]
The new version on Github works with Unicode. Included is a code sample (with
instructive error on refactoring done by the new team):
>>> import spidermonkey
>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context()
>>> cx.eval_script(u'"s\u2019te"')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'spidermonkey.Context' object has no attribute 'eval_script'
>>> cx.execute(u'"s\u2019te"')
u's\u2019te'
Original comment by ch...@adventurecow.com
on 5 Nov 2013 at 1:28
Original issue reported on code.google.com by
SemigodK...@gmail.com
on 13 Apr 2010 at 9:06