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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:31:48+00:00 2026-05-20T13:31:48+00:00

In my current project , I’ve been forgetting about character encoding and just letting

  • 0

In my current project, I’ve been forgetting about character encoding and just letting the application server do the right thing. This was working fine for some time. For instance, I was able to switch the locale in my application to Simplified Chinese / China and see the UTF-8 characters just fine in any recent Firefox or Chrome browser. Something changed (I’m still trying to figure out what). Content is still UTF-8 encoded, but sometimes the Content-type header is setting the charset wrong:

Content-Type:text/html;charset=ISO-8859-1

…leading to garbage appearing in the browser instead of Chinese characters. If I temporarily force the encoding to UTF-8 in my browser, the characters show up properly.

What would really help nail down the problem is knowing how an application server (or Web dev framework like struts or spring?) decides what to put in this header! Any ideas?

  • 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-20T13:31:49+00:00Added an answer on May 20, 2026 at 1:31 pm

    What web technology are you using? For instance in servlets you have ServletResponse#setCharacterEncoding(). In JSP:

    <%@ page contentType="text/html; charset=UTF-8" %>
    

    Eventually every web framework will end up using one of the two above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This current project I've been assigned uses the Version 3.1 levels of: Microsoft.Practices.EnterpriseLibrary.Common; Microsoft.Practices.EnterpriseLibrary.Data;
Current project is an Mvc4 application, I had Ioc working and recently it just
My current project is about doing some changes in an already build web application
As part of my current project I've been tasked with collecting URL's for various
Current Project Setup I've been working on a web-based chat, similar to Facebook chat.
My current project has a development web server and live web server. Developers make
In my current project we're trying to write an application (using SUN RI JSF
For our current project we are required to scan QR-codes via our own application.
This is my current project structure: pom.xml /src /main /resources hibernate.cfg.xml /META-INF persistence.xml I
Current project, broke head over this problem: Client Repository: public class ClientRepository { //

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.