You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Diego Dupin (JIRA)" <ji...@apache.org> on 2007/11/11 21:07:34 UTC

[jira] Created: (WW-2314) charset error with s:include

charset error with s:include
----------------------------

                 Key: WW-2314
                 URL: https://issues.apache.org/struts/browse/WW-2314
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tags
    Affects Versions: 2.0.11, 2.0.8
            Reporter: Diego Dupin


the characters with accents are transform if using s:include:

example ( file testAccent.jsp ):

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<p>
test accents : é è à 
</p>


the displayed result is "test accents : é è à"

if now i do in an other file : 
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<s:include value="/testAccent.jsp"></s:include>

</body>
</html>

the result will be " test accents : ? ? ?" and not "test accents : é è à"



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2314) charset error with s:include

Posted by "Ronny Løvtangen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45125#action_45125 ] 

Ronny Løvtangen commented on WW-2314:
-------------------------------------

For me all content after the letter å in the included file is discarded, with invalid HTML and missing content as result.
(using Struts 2.1.2)

> charset error with s:include
> ----------------------------
>
>                 Key: WW-2314
>                 URL: https://issues.apache.org/struts/browse/WW-2314
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.8, 2.0.11
>            Reporter: Diego Dupin
>             Fix For: Future
>
>
> the characters with accents are transform if using s:include:
> example ( file testAccent.jsp ):
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <p>
> test accents : é è à 
> </p>
> the displayed result is "test accents : é è à"
> if now i do in an other file : 
> <%@ taglib prefix="s" uri="/struts-tags" %>
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
>     pageEncoding="ISO-8859-1"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <title>Insert title here</title>
> </head>
> <body>
> 	<s:include value="/testAccent.jsp"></s:include>
> </body>
> </html>
> the result will be " test accents : ? ? ?" and not "test accents : é è à"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.