Could you just use text-transform:capitalize in your css to render the
text like you want?

On Oct 30, 11:09 am, "Gerson Albuquerque" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having the following problem:
>
> I'm using the function captalize, on this word: "memória", so I could get it
> capitalized. The result that I'm getting on my site is "MemóRia", with this
> capitalized "R". when it was supposed to capitalize only the first letter. I
> think the problem is that it is not recognizing the "ó", and then it thinks
> that the word has finished and capitalizes the letter R.
>
> Did I make myself clear? If so, please, someone can help me. I'm really
> stucked on this.
>
> The functions follows bellow:
>
> capitalize:function(){
> return this.replace(/\b[a-z]/g,
> function(A){
> return A.toUpperCase();
>
> }
> );
> }
>
> Thanks,
>
> Gerson Albuquerque

Reply via email to