In an aspx page, Combo box is displaying swedish characters in wrong way. It is displaying like “Réunion” instead of”‘Re’union” ? This value is retrieved from oracle database? Please suggest workarounds to fix this issue? Note: Culture and UICulture attributes are tried with. But not working”
Share
First of all, determine if you receive the string correctly from the Oracle database (in debugger, view the received string). If the string is already received wrong, it means you have not properly set the database charset on your connection. You should fix that; a nasty workaround would be to “ungarble” the garbled string by something like
Encoding.UTF8.GetString(Encoding.GetEncoding(1252).GetBytes(garbledString)).