problems with accent

View: New views
5 Messages — Rating Filter:   Alert me  

problems with accent

by Wesley Forti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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Ú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: problems with accent

by Christopher Schultz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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Ú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
Ú is clearly a numeric HTML entity reference.

-chris




signature.asc (266 bytes) Download Attachment

Re: problems with accent

by Wesley Forti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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Ú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 Ú is
> clearly a numeric HTML entity reference.
>
> -chris
>
>
>


--
Att,
---
Wesley Forti

Case Sensitive String Matching

by Steve O'Hara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...


Re: Case Sensitive String Matching

by Nathan Bubna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, May 17, 2008 at 12:23 AM, Steve O'Hara
<sohara@...> 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@...
> For additional commands, e-mail: user-help@...
>
>

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