Wrong character encoding in site title

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/2/2011 4:39:42 AM
Gravatar
Total Posts 13

Wrong character encoding in site title

Hi, colleagues.

I tried to change the site title using the SiteTitle control:

<portal:SiteTitle id="SiteTitle" runat="server" OverrideTitle="New site title></portal:SiteTitle>/

My site title is in Russian (as the whole site) but it is rendered using characters like these ă ĕ  ĭ  ŏ  ŭ ä, not Cyrillic.

At the same time content of pages and menu items are rendered correctly. What's up?

7/4/2011 9:37:03 AM
Gravatar
Total Posts 18439

Re: Wrong character encoding in site title

I'm not sure what would cause that but you could easily just remove the <portal:SiteTitle control from the layout.master file and replaces it with hard coded html.

Hope that helps,

Joe

7/16/2011 5:32:17 AM
Gravatar
Total Posts 13

Re: Wrong character encoding in site title

I replaced the <portal:SiteTitle> control with an usual <div> element and renamed the CSS class "siteheading" in both layout.master and style.css (just in case). But the problem has remained.

 

7/18/2011 6:34:03 AM
Gravatar
Total Posts 18439

Re: Wrong character encoding in site title

Look for the <globalization element in Web.config, try changing the fileEncoding from iso-8859-15 to utf-8 and see if that solves the problem. I don't recommend changing any other settings on the <globalization element, you should leave other settings as they are.

Hope that helps,

Joe

7/18/2011 4:50:20 PM
Gravatar
Total Posts 13

Re: Wrong character encoding in site title

Joe, thanks for the idea. But after changing the fileEncoding to utf-8 the characters like ă ĕ ĭ ŏ ŭ ä were replaced with ??????. 

I hope i has found the solution. The encoding settings on the <globalization element should match with ones of the layout.master (and any aspx-file as i understand). The layout.master in my site has windows-1251 encoding. I tried to save it in utf-8 encoding (in MS Visual Web Developer) but i was refused access. Then i changed  utf-8 to windows-1251  on the <globalization element and my problem was solved.  

You must sign in to post in the forums. This thread is closed to new posts.