// Get the posts relevant to the passed-in variables.\r
$bookmarks =& $bookmarkservice->getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag, NULL, getSortOrder());\r
\r
-header("Content-Type: application/csv-tab-delimited-table");
+header("Content-Type: application/csv-tab-delimited-table;charset=UTF-8");
header("Content-disposition: filename=exportBookmarks.csv");\r
\r
//columns titles
-echo 'url,title,tags,description';
+echo 'url;title;tags;description';
echo "\n";\r
\r
foreach($bookmarks['bookmarks'] as $row) {\r
if (is_null($row['bDescription']) || (trim($row['bDescription']) == ''))\r
$description = '';\r
else\r
- $description = filter($row['bDescription'], 'xml');\r
+ $description = filter(str_replace(array("\r\n", "\n", "\r"),"", $row['bDescription']), 'xml');\r
\r
$taglist = '';\r
if (count($row['tags']) > 0) {\r
$taglist = 'system:unfiled';\r
}\r
\r
- echo '"'.filter($row['bAddress'], 'xml') .'","'. filter($row['bTitle'], 'xml') .'","'. filter($taglist, 'xml') .'","'. $description .'"';
+ echo '"'.filter($row['bAddress'], 'xml') .'";"'. filter($row['bTitle'], 'xml') .'";"'. filter($taglist, 'xml') .'";"'. $description .'"';
echo "\n";\r
}\r
\r