kryskool / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 1 forks source link

Support for unicode strings when passing data to javascript #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently unicode strings are not supported and passing them as an argument to 
javascript function will result in error.

What do we need to do to support them? Some conversion before we can cast them 
to <char*>?

Original issue reported on code.google.com by czarek.t...@gmail.com on 15 Jul 2012 at 11:51

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 17 Jul 2012 at 7:34

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 19 Jul 2012 at 1:38

GoogleCodeExporter commented 9 years ago
I've come across the same issue, but found an easy fix.
string.encode("iso-8859-1")

Original comment by rich...@gmail.com on 20 Aug 2012 at 8:38

GoogleCodeExporter commented 9 years ago
Yes, that should be enough.

We cannot do the conversion automtaically, as we don't know what type of 
encoding is required, UTF-8 should work most of the cases, but probably not all 
of the cases(?).

Original comment by czarek.t...@gmail.com on 20 Aug 2012 at 8:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Support for unicode added (Issue 10).

Original comment by czarek.t...@gmail.com on 29 Aug 2012 at 4:58

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 14 Sep 2012 at 7:47