If I have a table mytable in "myDB" with a field "content" The field is set to utf8mb4_general_ci and try the following code:
Code: Select all
put revOpenDatabase("mysql", "localhost","MyDB", "myUser", "mypassword") into tDBid
put "How can I insert ÅÄÖ correctly??" into tStr
put "INSERT into mytable (content) VALUES (:1)" into tSQL
revExecuteSQL tDBid, tSQL, "tStr"
revCloseDatabase tDBid
I think I have tried every permutation of textEncode or textDecode, like
put textEncode(tStr, "uff-8") into tStr
before calling revExecuteSQL but whatever combination I try the data in the database is NOT correct.
Any suggestions!