次のコードを試してみたところ、正常に動作しています(Chromeのコンソールに正しい文字が表示されています)...
testHTML5ServerSent イベント
<HTML>
<HEAD>
<script language="javascript">
if (!!window.EventSource) {
var source = new EventSource('sendServerSentEvents.cfm');
source.addEventListener('message', function(e) {
console.log(e.data);
}, false);
source.addEventListener('open', function(e) {
// Connection was opened.
}, false);
source.addEventListener('error', function(e) {
if (e.eventPhase == EventSource.CLOSED) {
// Connection was closed.
}
}, false);
} else {
alert('not supported');// Result to xhr polling :(
}
</script>
</HEAD>
<BODY>
</BODY>
</HTML>
sendServerSentEvents.cfm
<cfcontent type="text/event-stream; charset=utf-8" >
data: éêtititiçà
</cfcontent>