mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Changed XML encoding
SVN revision: 1111
This commit is contained in:
parent
0533ae96c9
commit
c9f7e091c7
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.499 2004/10/25 21:26:35 midas
|
||||||
|
Changed XML encoding
|
||||||
|
|
||||||
Revision 1.498 2004/10/25 21:07:07 midas
|
Revision 1.498 2004/10/25 21:07:07 midas
|
||||||
Implemented RSS feeds
|
Implemented RSS feeds
|
||||||
|
|
||||||
@ -14231,10 +14234,10 @@ void show_rss_feed(LOGBOOK * lbs)
|
|||||||
if (getcfg("global", "charset", str, sizeof(str)))
|
if (getcfg("global", "charset", str, sizeof(str)))
|
||||||
rsprintf("Content-Type: text/xml;charset=%s\r\n", str);
|
rsprintf("Content-Type: text/xml;charset=%s\r\n", str);
|
||||||
else
|
else
|
||||||
rsprintf("Content-Type: text/xml;charset=iso-8859-1\r\n");
|
rsprintf("Content-Type: text/xml;charset=UTF-8\r\n");
|
||||||
rsprintf("\r\n");
|
rsprintf("\r\n");
|
||||||
|
|
||||||
rsprintf("<?xml version=\"1.0\" ?>\n");
|
rsprintf("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
||||||
rsprintf("<rss version=\"2.0\">\n");
|
rsprintf("<rss version=\"2.0\">\n");
|
||||||
rsprintf("<channel>\n");
|
rsprintf("<channel>\n");
|
||||||
|
|
||||||
@ -14276,8 +14279,6 @@ void show_rss_feed(LOGBOOK * lbs)
|
|||||||
|
|
||||||
rsprintf("<generator>ELOG V%s</generator>\n", VERSION);
|
rsprintf("<generator>ELOG V%s</generator>\n", VERSION);
|
||||||
|
|
||||||
rsprintf("<image>favicon.png</image>\n");
|
|
||||||
|
|
||||||
/*---- show last 15 items ----*/
|
/*---- show last 15 items ----*/
|
||||||
|
|
||||||
text = xmalloc(TEXT_SIZE);
|
text = xmalloc(TEXT_SIZE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user