tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <jon.wingfi...@mkodo.com>
Subject Re: Default Charset in Content-Type Header
Date Thu, 22 Sep 2005 12:01:10 GMT
Return binary content from a servlet using the ServletOutputStream and 
you should have no problem.
This is the way we vend MMS data. (In fact all of our binary data.)

HTH,

Jon

Alpay Ozturk wrote:
> Thanks Kerem ,
> 
> But I need to set the content-type of a servlet response as
> "application/vnd.wap.mms-message" without adding a charset header. Since
> some handsets do not accept the MMS response messages although the
> messsage is well-encoded. Anyway, thanks for your response.
> 
> Regards,
> 
> Alpay
> 
> On Thu, 2005-09-22 at 13:51, KEREM ERKAN wrote:
> 
>>You may add the charset of your choice (probably Turkish) to your jsp by
>>adding
>>
>><%@ page contentType="text/html; charset=iso-8859-9" %>
>>
>>To the beginning of your jsp page. If you do not add this, Tomcat will
>>always default to ISO-8859-1 or UTF-8 (I don't remember which one was
>>default).
>>
>>Regards,
>>
>>Kerem
>>
>>
>>
>>>-----Original Message-----
>>>From: Alpay Ozturk [mailto:Alpay.Ozturk@telenity.com.tr] 
>>>Sent: Thursday, September 22, 2005 12:37 PM
>>>To: Tomcat Users List
>>>Subject: Default Charset in Content-Type Header
>>>
>>>Hi,
>>>
>>>I am using Tomcat 4.1.29 in a production environment and I 
>>>want   tomcat
>>>not to add default charset in Content-Type response header.
>>>Is it possible?
>>>
>>>Thanks in advance.
>>>
>>>Alpay 
>>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message