Hi mholzner! i've tried the content type interceptor ,but it fails. when i changed the MIME_GENERAL_HTML = "text/html" --> text/html;charset=utf-8, and built the source again then it gives error that "content type not accepted!" , so i think it's related to setContentType method of RenderResponseImpl.java :
public void setContentType(String contentType) { int index = contentType.indexOf(';'); if (index != -1) { contentType = contentType.substring(0, index); } String responseContentType = resp.getContentType(); if (!responseContentType.equals(contentType)) { throw new IllegalArgumentException("Content type not accepted"); } result.setContentType(contentType); } it extracts only "text/hmtl" from content type (which is "text/html;charset=utf-8") and in turn it check against isAcceptedContentType method of ContentTypeInterceptor.java public static final boolean isAcceptedContentType(String contentType) { return MIME_GENERAL_HTML.equalsIgnoreCase(contentType) | MIME_WML.equalsIgnoreCase(contentType); } so eventually it doesn't match of course,.... you mentioned creating my own plugin, but i've no idea how to create that, i just want to allow jboss portal to support asian language which require utf-8 encoding (actually mongolian language) . if there are developers who supported asian language , please let me khow how to. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879117#3879117 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879117 ------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user