Page 1 of 1

Windows-1251 codepage

Posted: Fri Jan 07, 2022 5:13 am
by Recomserv
Hi guys! Thank you for this simple and effective CMS!
I have a question. I am making a website for Palm OS-based devices. PalmOS doesn't know any about UTF8, and I need Windows-1251 codepage on my website. I was trying to change codepage in International settings, but it doesn't work. Any Cyrillic characters look incorrect.
In which files do I need to change codepage UTF8 codepage to any other old codepages?
Thank you for your help!

Re: Windows-1251 codepage

Posted: Sat Jan 15, 2022 2:10 pm
by Arvid
Hi and welcome to FlatPress :)

I assume you set the "Character set" option to "windows-1252"?
The template header.tpl of the theme you are using (which one is it?) should then set this into the HTML source code of your blog. In Leggero, the default theme, header.tpl looks like this:

Code: Select all

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="{$fp_config.locale.lang}">
<head>
	<title>{$flatpress.title|tag:wp_title:'&laquo;'}</title>
	<meta http-equiv="Content-Type" content="text/html; charset={$flatpress.charset}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'/>
	{action hook=wp_head}
</head>
...
The {$flatpress.charset} placeholder is being replaced with the value of the "Character set" option you entered, is this working on your blog (check your site's source code in the browser)?

All the best,
Arvid