You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Henri Yandell <fl...@gmail.com> on 2009/09/07 21:30:14 UTC

Re: problem with StringEscapeUtils on linux inside tomcat

Apologies for the slow reply. Common approach on this list is to tag
the subject, ie:

[lang] problem with StringEscapeUtils

that can help it to be noticed.

escapeHtml has a much disagreed with 'feature' that it escapes
non-ASCII characters. That could be what you're seeing; perhaps mixed
with unexpected encoding setup on your side that obscure it. ie) using
SHIFT_JIS instead of UTF-8 and then seeing the escaped ASCII making it
weirder.

Hen

On Mon, Jul 20, 2009 at 12:27 AM, Diego Zanga<na...@gmail.com> wrote:
> hi,
>
> i'm using the class StringEscapeUtils, to replace
> the text to be published in html page
>
> value = StringEscapeUtils.escapeHtml( value );
>
> it's full working on linux and windows, with command
> line application to test it, then in windows with a web
> app in tomcat, but:
> when i use it on linux with a web app in tomcat,
> something strange appens: it converts text to wrong
> values...
>
> is there something to setup before runinng the class?
>
>
> cya, thanks all
>
> Diego Zanga
> ------------------------------
> Tutti a pensare che la verità sia una cosa giusta, e invece è la fine
> del mondo, e noi non possiamo consentire la fine del mondo in nome di
> una cosa giusta. Abbiamo un mandato, noi. Un mandato divino. Bisogna
> amare così tanto Dio per capire quanto sia necessario il male per
> avere il bene. Questo Dio lo sa, e lo so anch'io. (Il Divo)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

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