Rovango / cefpython

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

Support for unicode strings when passing data to javascript #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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 8 years ago

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

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 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 8 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 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Support for unicode added (Issue 10).

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

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/cefpython/issues/5

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 6:23