I write out the variable on the asp page:
name="ända" response.write name
He shows ända on the page, alright!
When pasted into a database, the value written to the database is ända
Page encoded with <%Response.charset="iso-8859-1"%>
How can I write this ända value to the database?
<%Response.charset="iso-8859-1"%> folderName=request.querystring("foretagsnamn") folderName = replace(folderName, "å" , "a") folderName = replace(folderName, "ä" , "a") folderName = replace(folderName, "ö" , "o") folderName = replace(folderName, "Å" , "a") folderName = replace(folderName, "Ä" , "a") folderName = replace(folderName, "Ö" , "o") folderName = LCase(folderName) response.write folderName
And then just paste sql into the database.
sql="INSERT INTO users(folderName) VALUES('"&folderName&"');" conn.execute(sql)
Its database is mySql, a classic asp.
The request is executed from the credit card payment service, and it is strange that when I complete the transaction and I exit the query line, this is wrong, but if I just refresh the page to run the code again and repeat the request, is that right !?