Changed to use ToNewUTF8String instead of ToNewCString in order to avoid data loss of non latin1 data,
contributed by m_kato@ga2.so-net.ne.jp, r=chuang,nhotta. git-svn-id: svn://10.0.0.236/trunk@66750 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -425,7 +425,7 @@ nsAddbookProtocolHandler::GeneratePrintOutput(nsIAddbookUrl *addbookUrl,
|
||||
else
|
||||
rv = BuildAllHTML(aDatabase, directory, workBuffer);
|
||||
|
||||
*outBuf = workBuffer.ToNewCString();
|
||||
*outBuf = workBuffer.ToNewUTF8String();
|
||||
|
||||
EarlyExit:
|
||||
// Database is open...make sure to close it
|
||||
|
||||
Reference in New Issue
Block a user