Permalink
Browse files
change comment and credit
- Loading branch information...
Showing
with
3 additions
and
5 deletions.
-
+3
−5
core/word_compile.py
|
|
@@ -32,11 +32,9 @@ |
|
|
|
|
|
|
|
|
def Utf8Encode(code):
|
|
|
"""
|
|
|
Args:
|
|
|
code: Unicode code point (integer)
|
|
|
Returns:
|
|
|
utf-8 encoded str
|
|
|
"""Return utf-8 encoded bytes from a unicode code point.
|
|
|
|
|
|
Based on https://stackoverflow.com/a/23502707
|
|
|
"""
|
|
|
if code <= 0x7F:
|
|
|
bytes_ = [code & 0x7F]
|
|
|
|
0 comments on commit
058352c