微信小程序编码转化(字符串转gbk编码字节)

库下载链接:https://download.csdn.net/download/qq_25430563/22382759

	import encode from '../utils/encoding.js'
			var code = new encode.TextEncoder(
				'gbk', {
    
    
					NONSTANDARD_allowLegacyEncoding: true
				}).encode("啊")
			console.log(code)

おすすめ

転載: blog.csdn.net/qq_25430563/article/details/120233213
おすすめ