Hey there, I have a problem.
I have an UTF8-general_ci database with a table which contains some umlauts like .
Now i want to populate it into a listbox, but I get a popup error and after I debugged it, I saw, that it doesnt handle the encoding correctly.
Here is my code:
rs=mydb.SQLSelect(sql)
if not IsNull(rs) then
while rs.EOF<>true
lstBox.AddRow
lstBox.RowTag(lstBox.LastIndex)=rs.Field("plz").IntegerValue
lstBox.Cell(lstBox.LastIndex,0)=str(rs.Field("plz").IntegerValue)
str=DefineEncoding(rs.Field("ort").StringValue,Encodings.UTF8)
lstBox.Cell(lstBox.LastIndex,1)=str
rs.MoveNext
wend
end if
after i changed the “.Encodings.UTF8” to “.Encodings.WindowsLatin1” but I dont understand why?! Because i am just using UTF8 nothing else.
Thanks for help in advance