[ 
https://issues.apache.org/jira/browse/SLING-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997335#comment-12997335
 ] 

Felix Meschberger commented on SLING-1939:
------------------------------------------

Well, I have to say, this is probably a works-as-designed case ....

According to the JSP specification the default character encoding of JSP source 
files is assumed to be ISO-8859-1. If the JSP source is stored in UTF-8 but 
there is no other indication of the contrary the JSP compiler will read the 
file with ISO-8859-1 and thus output wrong characters.

The only and correct solution to your problem is to explicitly state that the 
JSP contains UTF-8 characters.

> wrong character encoding for compiled JSP scripts
> -------------------------------------------------
>
>                 Key: SLING-1939
>                 URL: https://issues.apache.org/jira/browse/SLING-1939
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting JSP 2.0.12
>            Reporter: Victor Saar
>            Priority: Minor
>         Attachments: html.jsp
>
>
> I have a JSP that contains some static text with special chars (e.g. 
> umlauts). Though the JSP itself seems to be correctly encoded as UTF-8, the 
> compiled .java class under /var/classes/... shows these characters wrongly 
> encoded.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to