You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Wesley Forti <vi...@gmail.com> on 2008/05/15 15:51:12 UTC

problems with accent

Hi,

I´m trying to generate documents but I´m in trouble with accents.

Every word in my generated document is printed like this P&#218;BLICA unless
PÚBLICA.

Does anybody know how can I corret this problem?

I have already tried to force charset encoding by it failed.



Inté
-- 
Att,
---

Re: Case Sensitive String Matching

Posted by Nathan Bubna <nb...@gmail.com>.
On Sat, May 17, 2008 at 12:23 AM, Steve O'Hara
<so...@pivotal-solutions.co.uk> wrote:
> I thought that string comparisons in Velocity were always
> case-insensitive?
>
> i.e. $Tmp=="mystring"  ==>>  "mystring".equalsIgnoreCase(Tmp)
>
> Has something changed in 1.5 or am I labouring under a misunderstanding?

string comparisons in Velocity have always been case-sensitive.  at
least, in the 7 years, i've been around... :)

> Thanks
>
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>

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


Case Sensitive String Matching

Posted by Steve O'Hara <so...@pivotal-solutions.co.uk>.
I thought that string comparisons in Velocity were always
case-insensitive?

i.e. $Tmp=="mystring"  ==>>  "mystring".equalsIgnoreCase(Tmp)

Has something changed in 1.5 or am I labouring under a misunderstanding?

Thanks

Steve


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


Re: problems with accent

Posted by Wesley Forti <vi...@gmail.com>.
I just found the problem.

After genereating my document, I forced my app to send que response back to
the browser instead of let FacesServlet do that.

Thank´s anyway

On Thu, May 15, 2008 at 1:43 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> Westley,
>
>
> Wesley Forti wrote:
>
>> Hi,
>>
>> I´m trying to generate documents but I´m in trouble with accents.
>>
>> Every word in my generated document is printed like this P&#218;BLICA
>> unless
>> PÚBLICA.
>>
>> Does anybody know how can I corret this problem?
>>
>> I have already tried to force charset encoding by it failed.
>>
>
> Are you running your strings through any HTML (or XML) escaping mechanism?
> Velocity shouldn't so anything like that automatically, and &#218; is
> clearly a numeric HTML entity reference.
>
> -chris
>
>
>


-- 
Att,
---
Wesley Forti

Re: problems with accent

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Westley,

Wesley Forti wrote:
> Hi,
> 
> I´m trying to generate documents but I´m in trouble with accents.
> 
> Every word in my generated document is printed like this P&#218;BLICA unless
> PÚBLICA.
> 
> Does anybody know how can I corret this problem?
> 
> I have already tried to force charset encoding by it failed.

Are you running your strings through any HTML (or XML) escaping 
mechanism? Velocity shouldn't so anything like that automatically, and 
&#218; is clearly a numeric HTML entity reference.

-chris