Browse Source
We should be able to pass UTF-8 strings to and from plugins without python turning them into JSON-\u escapes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>issue-2504
Rusty Russell
6 years ago
committed by
Christian Decker
2 changed files with 33 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
#!/usr/bin/env python3 |
|||
from lightning import Plugin |
|||
|
|||
|
|||
plugin = Plugin() |
|||
|
|||
|
|||
@plugin.method("utf8") |
|||
def echo(plugin, utf8): |
|||
assert '\\u' not in utf8 |
|||
return {'utf8': utf8} |
|||
|
|||
|
|||
plugin.run() |
Loading…
Reference in new issue