You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Petr Hracek <ph...@gmail.com> on 2012/08/09 10:25:59 UTC
Default encoding in tomcat 5.5.29
Dear users,
could you please advice me what is a default encoding in tomcat 5.5.29:
I have found two links but I am not sure what is correct:
- http://www.velocityreviews.com/forums/t130011-tomcat-5-default-encoding.html
- http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q1
Is the default encoding ISO8859-1 or UTF-8?
--
Best Regards / S pozdravem
Petr Hracek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Default encoding in tomcat 5.5.29
Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/8/9 Petr Hracek <ph...@gmail.com>:
> Dear users,
>
> could you please advice me what is a default encoding in tomcat 5.5.29:
> I have found two links but I am not sure what is correct:
>
> - http://www.velocityreviews.com/forums/t130011-tomcat-5-default-encoding.html
> - http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q1
>
> Is the default encoding ISO8859-1 or UTF-8?
You have to define what you mean by the term "default encoding". There
are different terms in different contexts.
The I/O default encoding (the one that is used to write the log files,
etc.) is determined by your OS user configuration.
The servlet response default encoding is ISO-8859-1.
The information in the FAQ is correct, so follow the FAQ.
Regarding the random 8-years old discussion thread,
Jasper indeed uses UTF-8 to write java source files for JSP pages and
to call Java compiler on them (that is what javaEncoding option in
"jasper-howto.html" is about), but it is an internal detail that is
not visible from the outside.
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Default encoding in tomcat 5.5.29
Posted by ZhanGNer <zh...@gmail.com>.
The default encoding is ISO-8859-1
And you can change it by add " Content-Type: text/html; charset=ISO-8859-1"
in your pages.
On Thu, Aug 9, 2012 at 4:25 PM, Petr Hracek <ph...@gmail.com> wrote:
> Dear users,
>
> could you please advice me what is a default encoding in tomcat 5.5.29:
> I have found two links but I am not sure what is correct:
>
> -
> http://www.velocityreviews.com/forums/t130011-tomcat-5-default-encoding.html
> - http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q1
>
> Is the default encoding ISO8859-1 or UTF-8?
>
> --
> Best Regards / S pozdravem
> Petr Hracek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>