I would like to assign the UTF-8 as My page encoding for Arabic Language using the below code

<%@page pageEncoding="UTF-8" %>

But I got error message


1 Answer 1


Because the @ character is special in Razor, to output a literal @ you need to double it. So instead of

<%@page pageEncoding="UTF-8" %>

you must say:

<%@@page pageEncoding="UTF-8" %>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.