Highlighted

Encoding issue in invalid pages

venkatreddyguda

17-05-2019

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!

Replies

Highlighted

Bharath_valse

17-05-2019

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

Highlighted

venkatreddyguda

20-05-2019

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