Hello,
I'am trying use utf-8 encoding, I need these characters (I live in
eastern europe). But setting content type and character encoding doesn't
work.

In my page I have following code:
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x"%>
<html>
<head>
<title>Administrace</title>
<META HTTP-Equiv="Content-Type" CONTENT="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="inc/style.css">
</head>
<body>
<f:view locale="cz">
        <f:loadBundle var="bundle" basename="messages.Messages"/>
....


And when I run my app, I got these messages: DEBUG org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl - No content type given, using default content type text/html DEBUG org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl - No character encoding given, using default character encoding ISO-8859-1

And it doesn't display text correctly.

Any idea what I'am doing wrong?

jarin



Reply via email to