关于rapidjson读写问题(中文乱码)

我从记事本里读入了一些信息,然后以json的格式存储,我想把它打印在.json文件里,但在json文件里的中文显示是乱码。
求助各位大神啊.
rapidjson::Document document;
document.SetObject();
rapidjson::Document::AllocatorType& allocator = document.GetAllocator();
rapidjson::Value array(rapidjson::kArrayType);

while(strPos<bufferSize)
{
StringCuting((char*)pBuffer,oneData,strPos); //按行读取
sscanf(oneData,"%d %s %s %s %s",&num, name, place, phone, detail);
rapidjson::Value object(rapidjson::kObjectType);
object.AddMember(“id”, num, allocator);
object.AddMember(“name”, name, allocator);
object.AddMember(“place”, place, allocator);
object.AddMember(“phone”, phone, allocator);
object.AddMember(“detail”, detail, allocator);
array.PushBack(object, allocator);

ContactInfoNode node = new ContactInfoNode(name,place,phone,detail);
m_allContactInfo.addObject((CCObject
)node);
}

/**/
document.AddMember(“player”, array, allocator);
rapidjson::StringBuffer buffer;
rapidjson::Writerrapidjson::StringBuffer writer(buffer);
document.Accept(writer);
CCLOG("%s", buffer.GetString());
std::string strJson(buffer.GetString(), buffer.Size());
std::string filePath = (CCFileUtils::sharedFileUtils()->getWritablePath() + “UserElem.json”);
std::ofstream outfile;
outfile.open(filePath.c_str());
if (outfile.fail())
{
return;
}
outfile << strJson;
outfile.close();

楼主最后如何解决的啊?

可能是记事本里的编码 不一样把