Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

Commented Unassigned: File encoding for page templates [2123]

$
0
0
I have made a website with Composite C1. Everything was OK when I was running it locally on my developer machine, but when I uploaded it to the server, some of the strings had wrong character encoding.

The problem is that page template files are ANSI encoded. On my developer machine I have regional settings set to czech, so every ANSI file is by default treated like it is in czech laguage. But my server machine was set (Control Panel / Region / Administrative / Language for non-Unicode programs) to handle ANSI files as they are english. So when the page was rendered, all strings that were hardcoded to page templates were displayed incorrectly.

So I had to change that language settings in control panel to czech, that solved the problem, but is looks like it is a very ugly fix. This way I could not have two Composite C1 websites in different laguage, because one of them will always be displayed incorrectly. So what am I doing wrong? There must be something I am missing...
Comments: ** Comment from web user: Fido789 **

Now I have noticed that my other Composite website correctly creates Page templates UTF-8 encoded. First one ANSI, the other one UTF-8. I wonder what it depends on, maybe some Visual Studio issue.


Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>