UTF-8 Charset problem

View: New views
3 Messages — Rating Filter:   Alert me  

UTF-8 Charset problem

by Peter Wilkinson-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi all,

  I’m working on a site that uses sitemesh and have hit a charset issue.  I’m in the UK and the £ symbol is getting garbled.  I’ve done some research and suspect the issue is that when sitemesh grabs the page to be decorated, it expects it to be in iso-8859-1 when it’s actually in utf-8.

 

  I’m running the web app on a weblogic 9.2 server.

 

  I’m struggling with how to tell sitemesh to use utf-8.

 

  I’ve tried..

-                     putting <%@ page language="java" contentType="text/html;charset=UTF-8"%> at the top of the jsp page to be decorated.

-                     putting <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8"> in the page to be decorated.

-                     putting <%@ page language="java" contentType="text/html;charset=UTF-8"%> at the top of the decorator jsp page.

-                     putting <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8"> at the top of the decorator jsp page.

-                     Using <decorator name="main" page="/decorators/main.jsp" encoding="utf-8"> in my decorators.xml file.

-                     Adding <jsp-descriptor><encoding>UTF8</encoding></jsp-descriptor> to the weblogic.xml file.

-                     Adding a <bean class="org.springframework.web.filter.CharacterEncodingFilter"> that sets the encoding to UTF-8 and force to true in my spring config.

 

None of these has any affect at all.  If I put a £ symbol in the decorator jsp page it comes through fine.  The problem only occurs when the page being decorated contains the £ symbol.

 

I’ll really appreciate any help you can give.


Cheers,

Peter

 

The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.

Is sitemesh still alive?

by Peter Wilkinson-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Mailing lists and forums look pretty corpse-like.  Is there another technology that has made sitemesh obsolete?

 

Cheers,

Pete

 

The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.

Re: Is sitemesh still alive?

by Van Riper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Aug 18, 2008 at 3:52 AM, Peter Wilkinson
<Peter.Wilkinson@...> wrote:
> Mailing lists and forums look pretty corpse-like.  Is there another
> technology that has made sitemesh obsolete?

No.

Cheers, Van

--
| Michael "Van" Riper
| JUG-USA Interim President
| https://jug-usa.dev.java.net
----
| Silicon Valley Web JUG
| mailto:van_riper@...
| http://www.meetup.com/sv-web-jug/
----
| Silicon Valley Google Technology User Group
| mailto:van.gtug@...
| http://www.meetup.com/sv-gtug/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...