Commit cdf8347c authored by jiahua.liu's avatar jiahua.liu

try to fix Chinese Groupcard support

parent 687a773e
......@@ -305,7 +305,6 @@ object MiraiConsole {
if (!CommandManager.runCommand(fullCommand)) {
logger("未知指令 $fullCommand")
}
}
}
}
......
......@@ -9,9 +9,11 @@
package net.mamoe.mirai.qqandroid.network.protocol.data.jce
import kotlinx.io.core.toByteArray
import kotlinx.serialization.SerialId
import kotlinx.serialization.Serializable
import net.mamoe.mirai.qqandroid.io.JceStruct
import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
@Serializable
internal class ModifyGroupCardReq(
......
......@@ -410,7 +410,7 @@ internal class TroopManagement {
gender = 0,
dwuin = member.id,
dwFlag = 31,
sName = newName.toUtf8Bytes().encodeToString(charset = CharsetGBK),
sName = newName.toByteArray(CharsetUTF8).encodeToString(CharsetGBK),
sPhone = "",
sEmail = "",
sRemark = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment