西里尔语在redis中

问题描述

使用redis-cli,我将西里尔文中的数据添加到redis队列中,如果使用redis-cli获取队列数据,我们将看到"\xaf\xe0\xae\xa1\xa0"

在GO

msg,_ := redis.String(R.conn.Do("LPOP",key))

结果

enter image description here

如何获取西里尔字母? 我试过了

encoder := charmap.MacintoshCyrillic.NewDecoder() // Windows1251 to
s,_ := encoder.String(msg)
fmt.Print(s)

它不起作用

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)