Locale setting?
-
Paul J. Davis
I'll have too look but I would guess that if you can get the locale
set in python it should work as I'm just using the builtin unicode
conversions.My version on github was originally a derivative of Atul's but has
moved slot since then. You might just try it and see what happens. The
API is fairly close but not 100% compatible.On Jul 28, 2009, at 7:49 PM, Lighthouse no-reply@lighthouseapp.com
wrote: -
Frank Bennett
Thanks! I'll do an install sometime soon and report back on how we fare.
-
Frank Bennett
Paul,
Sorry for the long delay in responding. This morning I finally took the time to distill the problem down to a simple test script, and installed your version Just as you suspected, it works fine.
The previous edition of python-spidermonkey would fail when above-ascii unicode chars were passed via the eval_script method on the context object. With your version, they are digested without a hitch. In fact, when the python interpreter is run with UTF-8 as the default encoding, cx.execute is indifferent to whether the string on the python side of the bridge is in Unicode or UTF-8; everything gets correctly converted to Unicode within JS. Absolutely splendid.
The quickie script that I used for testing is attached.
-
Paul J. Davis
- Tag set to conversion, unicode
- State changed from new to resolved
Frank,
Good news. Thanks for reporting back.
Paul
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
