diff options
| author | Tony Garnock-Jones <tonyg@lshift.net> | 2008-12-02 16:43:56 +0000 |
|---|---|---|
| committer | Tony Garnock-Jones <tonyg@lshift.net> | 2008-12-02 16:43:56 +0000 |
| commit | f3f83f0a6c1430e8add101466179d3a2905eaece (patch) | |
| tree | d4d49d3fe270ab39945cfda96ef16fb80cd9071b /codegen.py | |
| parent | 60b0f6703e409f7629ea48017dade4d1c2d9672a (diff) | |
| parent | c2ed22d2ca95b856f6f1bb7ee9109a8a4468fb6b (diff) | |
| download | rabbitmq-server-git-f3f83f0a6c1430e8add101466179d3a2905eaece.tar.gz | |
merged bug19841 into default
Diffstat (limited to 'codegen.py')
| -rw-r--r-- | codegen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen.py b/codegen.py index 5dbc57c7de..629f2b8c3e 100644 --- a/codegen.py +++ b/codegen.py @@ -58,7 +58,8 @@ erlangDefaultValueTypeConvMap = { str : lambda x: "<<\"" + x + "\">>", int : lambda x: str(x), float : lambda x: str(x), - dict: convertTable + dict: convertTable, + unicode: lambda x: "<<\"" + x.encode("utf-8") + "\">>" } def erlangize(s): |
