Hello,
This code is in export.php starting from line 92:
header("Content-Length: ".mb_strlen($transContent, '8bit'));
if (!empty($sugar_config['export_excel_compatible'])) {
$transContent=chr(255) . chr(254) . mb_convert_encoding($transContent, 'UTF-16LE', 'UTF-8');
}
print $transContent;
However mb_convert_encoding changes the length of the string, hence it should be like this:
if (!empty($sugar_config['export_excel_compatible'])) {
$transContent=chr(255) . chr(254) . mb_convert_encoding($transContent, 'UTF-16LE', 'UTF-8');
}
header("Content-Length: ".mb_strlen($transContent, '8bit'));
print $transContent;
The current code causes half of the output to be cut off.
Best regards,
totycro