MCPcopy Create free account
hub / github.com/Relph1119/JVMByPython / string_to_utf16

Function string_to_utf16

src/develop_code/rtda/heap/StringPool.py:45–52  ·  view source on GitHub ↗

不能采用直接utf-8编码[s.encode("utf-8")]的原因:由于在python中存储的是字符串汉字(一个字符串表示三个字符,即三个整数), 但是在Java中只能是一个汉字字符表示一个整数 :param s: :return:

(s)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

j_stringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected