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 8311547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:50:59+00:00 2026-06-08T19:50:59+00:00

Firefox 13.0.1 and IE7+ work fine with the JSON file on the server. Yet,

  • 0

Firefox 13.0.1 and IE7+ work fine with the JSON file on the server. Yet, FF14 returns this error message produced by the console when I open the JSON (stored online) file in the browser:

The character encoding of the plain text document was not declared.
The document will render with garbled text in some browser
configurations if the document contains characters from outside the
US-ASCII range. The character encoding of the file needs to be
declared in the transfer protocol or file needs to use a byte order
mark as an encoding signature.

http://lifelearning.x10.mx/test/php_slides.js.

And when you visit this website (a testing website of mine),
http://lifelearning.x10.mx/test/php_slides.html
(you can view the codes there)
and scroll your mouse within the div (surrounded by the black border),
the texts do not come out expectedlly (which otherwise do in any browsers listed above except FF14).

I would like to ask how I can declare the character encoding of a plain text as requested by the FF14 web console.

  • 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-06-08T19:51:01+00:00Added an answer on June 8, 2026 at 7:51 pm

    The content type & character encoding can be set with an HTTP header. The header you probably want is:

    Content-type: application/json; charset=UTF-8
    

    If you are serving up json data from php you can add this header with the header() command.
    If you are using apache, you can use a .htaccess file with these lines:

    AddType application/json .json
    AddCharset UTF-8 .json
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code works fine in <= IE7, but it doesn't work in firefox ..
Having some trouble w/ IE7. IE8, Chrome, Firefox all work fine, but IE7 won't
A site works fine with Chrome, FireFox, IE8 but does not work with IE7
Why doesn't following code work correctly in FireFox 3.6? I have tested in IE7,
The following dropdown menu works fine in modern browsers (IE7/firefox) but not in IE6.
In Firefox 3.6, IE7 and Opera 10 on Windows, this HTML has an odd
My form views fine in IE7 and IE8 but FireFox does not display the
I have designed a Navigation Menu, it work fine on Chrome and Firefox but
Rails 2.3.5 (internal work server - stuck at this version for inside apps) The
I am getting an annoying error only in IE7 and IE8's compatibility mode. FireFox

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.