You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes to bytes/unicode strings encoding and decoding,
errors="ignore", see the UNICODE_ENCODE_ERRORS and
BYTES_DECODE_ERRORS global variables in string_utils.pyx.
Fixed Frame.ExecuteJavascript(), if the string contained
utf-8 characters it would probably result in errors.
Updated ExceptHook in the examples to handle UnicodeDecodeError
exceptions when writing to the log file or printing invalid
characters.
Added PY_MAJOR_VERSION compile time constant.
Changed the c string types in Cython to be always 'bytes'
with the 'utf-8' encoding, any decoding to unicode should
be explicit.
Updated the way the cefpython module is imported in the examples,
the previous method was treacherous.
Changed the name of the ApplicationSettings["unicode_to_bytes_encoding"]
option to "string_encoding".
Fixed importing urlparse in Python 3.
Updated CEF 1 to Chrome version 27.0.1453.110.
<textareaid=jscodecols=50rows=2>alert('test me [unicode: ąś]')</textarea><br>
175
175
<ahref="javascript:python.ExecuteJavascript(jscode.value)">python.ExecuteJavascript(jscode.value)</a> - execute javascript from the textarea above.
176
176
177
177
<h3>Frames</h3>
@@ -186,7 +186,7 @@ <h3>Javascript bindings</h3>
186
186
<h4>Passing arguments</h4>
187
187
188
188
<ahref="javascript:alert('Return value from python.Test1: '+python.Test1(100))">python.Test1(100)</a><br>
189
-
<ahref="javascript:alert('Return value from python.Test2: '+JSON.stringify(python.Test2(100, 'This string was passed from javascript', '')))">python.Test2(100, 'This string was passed from javascript', '')</a> - python.Test2() should return: [1,2, [2.1, {'3': 3, '4': [5,6]}]]
189
+
<ahref="javascript:alert('Return value from python.Test2: '+JSON.stringify(python.Test2(100, 'This string was passed from javascript [unicode: ąś]', '')))">python.Test2(100, 'This string was passed from javascript [unicode: ąś]', '')</a> - python.Test2() should return: [1,2, [2.1, {'3': 3, '4': [5,6]}]]
0 commit comments