💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## demo ``` const encoder = new TextEncoder() // default 'utf-8' or 'utf8' const view = encoder.encode('你好') // Uint8Array(6) [228, 189, 160, 229, 165, 189] let decoder = new TextDecoder(); const decoderStr =decoder.decode(new Uint8Array([228,189,160,229,165,189])) // 你好 ```