You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I define razor light engine as
RazorLightEngine engine = new RazorLightEngineBuilder()
.UseEmbeddedResourcesProject(typeof(RazorModel))
.SetOperatingAssembly(typeof(RazorModel).Assembly)
.UseMemoryCachingProvider()
.Build();
and then use
engine.CompileRenderStringAsync(razorTemplateKey, content, model)
I have the issue with encoding when my content contains Russian.
Is it possible to specify some kind of encoding for Engine by default?
I have created a lot of templates in my project with localization and as temporary fix I use
content = "@using RazorLight @{ DisableEncoding = true; }" + content;
I would like to have an option to set some property to engine and be able to work with any language.
The text was updated successfully, but these errors were encountered:
Hello!
If I define razor light engine as
RazorLightEngine engine = new RazorLightEngineBuilder()
.UseEmbeddedResourcesProject(typeof(RazorModel))
.SetOperatingAssembly(typeof(RazorModel).Assembly)
.UseMemoryCachingProvider()
.Build();
and then use
engine.CompileRenderStringAsync(razorTemplateKey, content, model)
I have the issue with encoding when my content contains Russian.
Is it possible to specify some kind of encoding for Engine by default?
I have created a lot of templates in my project with localization and as temporary fix I use
content = "@using RazorLight @{ DisableEncoding = true; }" + content;
I would like to have an option to set some property to engine and be able to work with any language.
The text was updated successfully, but these errors were encountered: