How to read a string with UTF8 coding using linq to entities
问题 I am trying to read a LimeSurvey table using Linq to entities. My problem is that LimeSurvey stores strings in UTF8 and .Net doesn't like it... So, i've got a simple function to list all my surveys, how can i tell Linq to read the strings in UTF8 format? My function: public static List<Lime_Surveys> List() { using (LimeSurveyEntities db = new LimeSurveyEntities()) { IQueryable<Lime_Surveys> list = db.Lime_Surveys.Include("Lime_Surveys_LanguageSettings"); return list.ToList(); } } 回答1: You