Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Ruby,我需要通过一个整数生成一个 UTF-8 字符。
例如:如果id = 65(10),我需要获取编码为 00a1 的 UTF-8 字符。
id = 65(10)
这是你要找的吗?
65.pack('U')