PHP Classes

Special characters in javascript

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  Special characters in javascript  >  (Un) Subscribe thread alerts  
Subject:Special characters in javascript
Summary:How can write special characters (accents) in javascript
Messages:2
Author:Pedro Alcaraz
Date:2008-08-18 11:42:00
Update:2008-08-18 21:56:23
 

  1. Special characters in javascript   Reply   Report abuse  
Picture of Pedro Alcaraz Pedro Alcaraz - 2008-08-18 11:42:00
How can write special characters (accents) in messages validation javascript?

Thanks
Pedro Alcaraz

  2. Re: Special characters in javascript   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-08-18 21:56:23 - In reply to message 1 from Pedro Alcaraz
Just enter them in a string with accents as usual. As long as your page encoding uses the same character set as the text in your PHP source file, the characters will appear correctly.