Note that there are some explanatory texts on larger screens.

plurals
  1. POModify the special characters in asp.net mvc
    primarykey
    data
    text
    <p>I have a problem with c# and html code with special French characters :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="~/Content/jquery.treeview.css" /&gt; &lt;script src="~/Content/jquery.cookie.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="~/Content/jquery.treeview.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="~/Content/demo.js"&gt;&lt;/script&gt; &lt;!-- partie calendrier--&gt; &lt;link rel="stylesheet" href="~/Scripts/Calendar/theme.css" /&gt; &lt;link href="~/Scripts/Calendar/fullcalendar.css" rel="stylesheet" /&gt; &lt;link href="~/Scripts/Calendar/fullcalendar.print.css" rel="stylesheet" media="print" /&gt; &lt;script src="~/Scripts/Calendar/fullcalendar.min.js"&gt;&lt;/script&gt; &lt;style&gt; body { background-color:#eee; } #tree { background-color:#eee; } .affaire { color:black; font-size: 16px; } .tache { color:black; font-size: 12px; } .projet { color:blue; font-size: 20px; } .sequence { color:blue; font-size: 16px; } #calendar { width: 900px; margin: 0 auto; } p { color:white; font-size: 12px; } #status { position:absolute; left:60%; } &lt;/style&gt; &lt;style&gt; input { border: 1px solid #e2e2e2; background: #fff; color: #333; font-size: 1.2em; margin: 5px 0 6px 0; padding: 5px; width: 300px; } a { font-size:14px; } &lt;/style&gt; &lt;script&gt; $(document).ready(function () { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var tab = []; var d1 = []; var m1 = []; var y1 = []; var d2 = []; var m2 = []; var y2 = []; var colors = []; @for(int i =0; i&lt; @Model.Get_List_Tache().Count;i++){ @: d1.push(@Model.Get_List_Tache()[i].Begin_date.Day); @: m1.push(@Model.Get_List_Tache()[i].Begin_date.Month); @: y1.push(@Model.Get_List_Tache()[i].Begin_date.Year); @: d2.push(@Model.Get_List_Tache()[i].End_date.Day); @: m2.push(@Model.Get_List_Tache()[i].End_date.Month); @: y2.push(@Model.Get_List_Tache()[i].End_date.Year); } d1.reverse(); m1.reverse(); y1.reverse(); d2.reverse(); m2.reverse(); y2.reverse(); @for(int i =0; i&lt; @Model.Get_List_Tache().Count;i++){ @:var e = { title: "Tâche: @Model.Get_List_Tache()[i].Tache_description", start: new Date(y1.pop(), m1.pop() - 1, d1.pop(), 08, 00), end: new Date(y2.pop(), m2.pop() - 1, d2.pop(), 18, 00), allDay: true, color: "@Model.GetColors()[i]", }; @: tab.push(e); } $('#calendar').fullCalendar({ theme: true, header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, editable: true, events: tab }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;table &gt; &lt;tr&gt;&lt;td style="background-color:darkcyan; width:30%;"&gt; &lt;p&gt;Tâche en cours&lt;/p&gt;&lt;/td&gt;&lt;td style="background-color:black;width:30%"&gt; &lt;p&gt;Tâche terminée&lt;/p&gt;&lt;/td&gt;&lt;td style="background-color:darkred;width:30%"&gt; &lt;p&gt;Tâche en urgence&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;br /&gt; &lt;br /&gt; &lt;table&gt;&lt;tr&gt;&lt;td style="" &gt; &lt;/td&gt; &lt;td &gt; &lt;div id='calendar'&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I get this result :</p> <p><img src="https://i.stack.imgur.com/xP6ok.jpg" alt="error"></p> <p>In the line <code>Tâche: développement</code> the result is <code>Tâche: d&amp;amp;#233;veloppement</code>. So the character <code>â</code> is accepted but the <code>é</code> is not.</p> <p>What is the reason of this error? How can I fix it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload