Contact Char With Unicode Problem.

void alertServer(const char * name, int msg)
{
std::string message;
if(msg == 1)
{
message = "赏金对象设置为: ";
message += name;
message += “. 赶紧击杀获取奖金吧!”;
}
else if(msg == 2)
{
message = “赏金击杀:”;
message += name;
message += “已被取消!”;
}
sWorld->SendServerMessage(SERVER_MSG_STRING, message.c_str(), 0);
}look above code, when i concat a unicode stirng join a char array(name) the “SendServerMessage” will not work.

but if not join char array that work perfect.

— Canned message start —
This thread is not related to the official Trinity codebase and was moved to the Custom Code section.
Please read the stickies next time.
— Canned message end —