I have this
$('#someId').html(<% Response.Write("'"+HttpUtility.HtmlEncode(_.T(data.notice.split(';')[1]))+"'"); %>);
And I get compilation error Too many characters in character literal
In another place I have:
$('#someOtherId').html(<% Response.Write("'"+HttpUtility.HtmlEncode(_.T("Something"))+"'"); %>);
and it works fine. Why is there a different behavior?
The only character literal in that line is
';'. It doesn’t look like there is more than one character, but you might have an invisible character in there along with the semicolon, or a tab character that happens to be very narrow at that position. Try to retype that part of the code.Also look at lines nearby. The line number reported might be slightly off.