You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sebastian Ryszard Kruk <sk...@tlen.pl> on 2004/08/30 19:37:46 UTC
tag file encoding problem
Hi,
I have a strange problem - I use tomcat 5.0.14.
When I try to put some strings with polish letters like "Ściąga" in tag
file - it results that during the translation to *.java file - this text
is being replaced by ÅciÄga - just as it would treat the *.tag file as
encoded in Latin1 rather than in UTF-8. Polish letters in *.jsp files
are ok, though.
Any ideas ??
Thanks,
skruk
--
-----------------------------------------
-- Sebastian Ryszard Kruk, M.Sc.
-- mailto: skruk@tlen.pl
-- GG: 335067, Jabber: s_kruk@chrome.pl
-----------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tag file encoding problem
Posted by "V. Karthik Kumar" <gu...@bafsoft.com>.
use:
response.setCharacterEncoding("Whatever"); <-- internally, this is what
the tags translate to...
Before u carry on with out.print() statements...
And one more thing.. there is an option available to add encoding
messages by default; a filter is available by default....
filters.setCharacterEncodingFilter
look in the servlets-examples\WEB-INF\web.xml
:)
On Wed, 2004-09-01 at 00:37, John Villar wrote:
> then you should use the <%@ page %> directive..... search the web.... it
> has a way to specify encoding
>
> Sebastian Ryszard Kruk escribió:
>
> > Dnia 08/30/2004 07:01 PM, Użytkownik John Villar napisaÅ:
> >
> >> i don't know much about the ".tag" format.... however, if it is an
> >> XML based one, you must define the charset of your xml in the <?xml?>
> >> tag
> >>
> >> Sebastian Ryszard Kruk escribió:
> >>
> >>> Hi,
> >>>
> >>> I have a strange problem - I use tomcat 5.0.14.
> >>>
> >>> When I try to put some strings with polish letters like "Ściąga" in
> >>> tag file - it results that during the translation to *.java file -
> >>> this text is being replaced by ÅciÄga - just as it would treat the
> >>> *.tag file as encoded in Latin1 rather than in UTF-8. Polish letters
> >>> in *.jsp files are ok, though.
> >>>
> >>> Any ideas ??
> >>>
> >>> Thanks,
> >>>
> >>> skruk
> >>
> >>
> >>
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> > it is not - it is rather a part of JSP page ;-(
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tag file encoding problem
Posted by John Villar <jo...@florhard.com>.
then you should use the <%@ page %> directive..... search the web.... it
has a way to specify encoding
Sebastian Ryszard Kruk escribió:
> Dnia 08/30/2004 07:01 PM, Użytkownik John Villar napisaÅ:
>
>> i don't know much about the ".tag" format.... however, if it is an
>> XML based one, you must define the charset of your xml in the <?xml?>
>> tag
>>
>> Sebastian Ryszard Kruk escribió:
>>
>>> Hi,
>>>
>>> I have a strange problem - I use tomcat 5.0.14.
>>>
>>> When I try to put some strings with polish letters like "Ściąga" in
>>> tag file - it results that during the translation to *.java file -
>>> this text is being replaced by ÅciÄga - just as it would treat the
>>> *.tag file as encoded in Latin1 rather than in UTF-8. Polish letters
>>> in *.jsp files are ok, though.
>>>
>>> Any ideas ??
>>>
>>> Thanks,
>>>
>>> skruk
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> it is not - it is rather a part of JSP page ;-(
>
--
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com
Re: tag file encoding problem
Posted by Sebastian Ryszard Kruk <sk...@tlen.pl>.
Dnia 08/30/2004 07:01 PM, Użytkownik John Villar napisaÅ:
> i don't know much about the ".tag" format.... however, if it is an XML
> based one, you must define the charset of your xml in the <?xml?> tag
>
> Sebastian Ryszard Kruk escribió:
>
>> Hi,
>>
>> I have a strange problem - I use tomcat 5.0.14.
>>
>> When I try to put some strings with polish letters like "Ściąga" in
>> tag file - it results that during the translation to *.java file -
>> this text is being replaced by ÅciÄga - just as it would treat the
>> *.tag file as encoded in Latin1 rather than in UTF-8. Polish letters
>> in *.jsp files are ok, though.
>>
>> Any ideas ??
>>
>> Thanks,
>>
>> skruk
>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
it is not - it is rather a part of JSP page ;-(
--
-----------------------------------------
-- Sebastian Ryszard Kruk, M.Sc.
-- mailto: skruk@tlen.pl
-- GG: 335067, Jabber: s_kruk@chrome.pl
-----------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: tag file encoding problem
Posted by John Villar <jo...@florhard.com>.
i don't know much about the ".tag" format.... however, if it is an XML
based one, you must define the charset of your xml in the <?xml?> tag
Sebastian Ryszard Kruk escribió:
> Hi,
>
> I have a strange problem - I use tomcat 5.0.14.
>
> When I try to put some strings with polish letters like "Ściąga" in
> tag file - it results that during the translation to *.java file -
> this text is being replaced by ÅciÄga - just as it would treat the
> *.tag file as encoded in Latin1 rather than in UTF-8. Polish letters
> in *.jsp files are ok, though.
>
> Any ideas ??
>
> Thanks,
>
> skruk
--
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com