ADO and Unicode

Client-side HTML form

The input form must be set the the UTF-8 character-set using meta tags. The purpose for setting browser character-set is to encode all Unicode code points as UTF-8 byte streams to the submit_to_database.asp Active Server Page.

   <script language=javascript>
   function submitPage()
   {
       document.frmMain.action='submit_to_database.asp';
       document.frmMain.method='POST';
       document.frmMain.submit();
   }
   </script>

   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">

   <FORM NAME=frmMain>
   <pre>
   Unicode Character:<INPUT TYPE="text" NAME="code_point" VALUE="">
   Unicode Value: <INPUT TYPE="text" NAME="unicode_number" VALUE=""><br>
   </pre>
   <br>
   <INPUT TYPE="button" VALUE="Submit Unicode" onClick="submitPage();">
   </FORM>

You might also like...

Comments

About the author

David Nishimoto United States

NishiSoft provides Part I of the Information Technology Project collaboration. Sign up and list your IT project tasks, assign task too friends, and get percent complete task.

Part will ...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - Rick Osborne