Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support utf8 in mustache partial template #765

Open
mohammed-addurrah opened this issue Aug 3, 2024 · 0 comments
Open

support utf8 in mustache partial template #765

mohammed-addurrah opened this issue Aug 3, 2024 · 0 comments

Comments

@mohammed-addurrah
Copy link

hello,there is a problem when mustache template page call other page using {{>partialpage}} that does not support utf8 and give the text that is not engish wrong format so I modified your code to solve this problem and these is the code wrong

in MVCFramework.View.Renderers.Mustache in function LoadPartials these is the wrong code
fPartials.Add(lPartialName, TFile.ReadAllText(lPartialFileNames[i])
the right code is
fPartials.Add(lPartialName, TFile.ReadAllText(lPartialFileNames[i],TEncoding.UTF8)
I dont know to to modif code in github but I hoop some one fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant