title: Javascript validation to accept only utf-8 characters
body: <p>I have a form and I want that form's input fields should accept only UTF-8 character.I have no idea how can i achieve this.Following is my html form .Any help !! Thanks in advance..</p>
  
  <pre><code>&lt;form action="" method="post" id="myform"&gt;              
  
  &lt;fieldset id="address"&gt;
      &lt;div class="required"&gt;
          &lt;label for="firstName"&gt;
              &lt;span class="required-indicator"&gt;* &lt;/span&gt;
              &lt;span&gt;First Name&lt;/span&gt;
          &lt;/label&gt;
          &lt;input class="input-text required" id="firstName" type="text" name="billto_firstname" value="" maxlength="50"&gt;
      &lt;/div&gt;
  
      &lt;div class="required"&gt;
          &lt;label for="lastName"&gt;
              &lt;span class="required-indicator"&gt;* &lt;/span&gt;
              &lt;span&gt;Last Name&lt;/span&gt;
          &lt;/label&gt;
  
          &lt;input class="input-text required" id="lastName" type="text" name="billto_lastname" value="" maxlength="50"&gt;
      &lt;/div&gt;
  
      &lt;div class="required"&gt;
          &lt;label for="address1"&gt;
              &lt;span class="required-indicator"&gt;* &lt;/span&gt;
              &lt;span&gt;Address 1&lt;/span&gt;
          &lt;/label&gt;
  
          &lt;input class="required" id="address1" type="text" name="billto_address1" value="" maxlength="50"&gt;
      &lt;/div&gt;
  &lt;/fieldset&gt;
  
  &lt;fieldset&gt;
      &lt;div class="row-button"&gt;
          &lt;button class="continue-button" type="submit" name="submit-form" onclick="this.submit()" value="Continue"&gt;&lt;span&gt;Continue &lt;/span&gt;&lt;/button&gt;
      &lt;/div&gt;              
  &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>