Home >Database >Mysql Tutorial >How to Properly Insert UTF-8 Strings into an SQL Database Using Classic ASP?
Convert UTF-8 string to SQL database in Classic ASP
Inserting French characters into a SQL database and retrieving them correctly can be a challenge. One solution is to convert the string to the appropriate charset before sending it to the database.
Pre-convert strings
To convert a string to UTF-8 before sending to the database, follow these steps:
<code><% Response.Charset = "UTF-8" %> <% Response.CodePage = 65001 %></code>
<code class="language-asp">Response.Charset = "UTF-8" Response.CodePage = 65001</code>
<code class="language-asp"><!--#include file="page_encoding.asp" --></code>
Other notes
The above is the detailed content of How to Properly Insert UTF-8 Strings into an SQL Database Using Classic ASP?. For more information, please follow other related articles on the PHP Chinese website!