0
I have a Mysql database with encoding defined as latin1_swedish_ci
.
I’m using Dapper to connect the database. When I make a query to certain tables, the characters that are accented comes as follows , but the characters that do not accentuate get normal.
For example should come abraão
, but it’s coming abra�o
.
Observation: I’ve already set up the connectionstring to receive UTF-8 (CharSet=utf8;
).
Web.config:
<system.web>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
culture="pt-BR"
uiCulture="pt-BR"
/>
</system.web>
And as it is the direct consultation in the bank?
– Jéf Bueno
When I use select straight from heidiSql the return is coming right, ie,
abraão
.– Abraão Honório
I don’t quite understand, but you talk about leaving the connectionstrings that way ? Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; Charset=latin1_swedish_ci;
– Abraão Honório