Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6547941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:53:29+00:00 2026-05-25T11:53:29+00:00

using <cfcontent type=text/event-stream> in ColdFusion, the non-English characters are displayed as question marks: ???????123123????

  • 0

using <cfcontent type="text/event-stream"> in ColdFusion, the non-English characters are displayed as question marks: ???????123123???? ???, but the rest of the page can display non-English characters just fine.

I followed this tutuorial and tried

<cfheader name="Content-Type" value="text/event-stream; charset=utf-8">

and also

<cfcontent type="text/event-stream; charset=utf-8">

Both of them do not work with Chrome (doesn’t pick up, developer tool reported “pending” with no reconnection.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:53:29+00:00Added an answer on May 25, 2026 at 11:53 am

    Just tried the following code and it’s working fine (showing the correct characters in Chrome’s console)…

    testHTML5ServerSent events

        <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>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an equivalent to the following: header(Content-type: text/xml); I'm using Google Maps with
Content type Events has intro, body and an event date field (using Date module).
i am using site content type RichHtmlField as Full HTML type with value =
I'm using a Drupal content type for all my nodes. I was wondering if
I'm using drupal 7.x and am creating a node content-type template. My content type
I am using this for sending file to user header('Content-type: application/zip'); header('Content-Length: ' .
I've made a simple http server using Twisted, which sends the Content-Type: multipart/x-mixed-replace header.
I have created this report using BIRT and phpjavabridge <?php header(Content-type: application/pdf); header(Content-Disposition: inline;
I start a download using PHP with this code: <? $_REQUEST['file'] = urldecode($_GET['file']); header(Content-type:
I have index.php like this: <script type=text/javascript src=jquery-1.4.2.js></script> <script type=text/javascript src=ajax.js></script> <a href='one.php' class='ajax'>One</a>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.