Expand my Community achievements bar.

Encoding issue in invalid pages

Avatar

Level 2

Hi Folks,

I am using ACS Commons for error handling.We have multilingual site and when we try to open invalid page it is redirecting to 404 content but we are getting encoding issues for special charters and also for other languages.I see the response headers for the 404 get

Content-Type:

text/html;charset=ISO-8859-1

I added utf-8 encoding in jsp files and also checked osgi configuration to see default set to utf-8.Did i miss anything?

Thanks an in advance!

2 Replies

Avatar

Level 4

Is the behavior same with 404s via publish instance? you might also want to check the default encoding on the Apache web-server as well

#

# Specify a default charset for all content served; this enables

# interpretation of all content as UTF-8 by default.  To use the

# default browser choice (ISO-8859-1), or to allow the META tags

# in HTML content to override this choice, comment out this

# directive:

#

AddDefaultCharset UTF-8

Avatar

Level 2

Hi Bharath,

Yes this is happening in Publish instance also.This is happening for only invalid pages all other pages are working fine.

Thanks,

Venkat