一个将 utf-8 字节转换为字符的库
作者:xmh0511
#145 in #utf-8
4KB 55 行
use char_from_utf8::{FromUtf8}; fn main(){ let r:char = char::from_utf8(&[0xE6,0x88,0x91]).unwrap(); println!("{r}"); }