|Post date: 2007-01-19 10:06|
I'm in the habit of using a lot of OpenAgent functions in my coding. There is a disadvantage to this because when you start doing your own header formatting you are on your own - Domino will not help you here.
When monitoring the HTTP-headers with a reverse proxy program (I use Charles) I finally found the solution. Just add the "charset=UTF-8" parameter to the content-type line. See example below.
That's also a good example of a page that definitely will not get cached. :-)
Print "Content-type:text/html; charset=UTF-8" ' Format a nice header telling the content type.
Print |Cache-control: max-age=0|
Print |Cache-control: no-cache, no-store, must-revalidate|
Print |alert("Change done for: "| + doc.Subject(0) + |;|
Print |document.location.href = "/";|