Windows-1251 codepage

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
Recomserv
Posts: 1
Joined: Fri Jan 07, 2022 5:01 am

Windows-1251 codepage

Post by Recomserv » Fri Jan 07, 2022 5:13 am

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!

User avatar
Arvid
FlatPress Coder
Posts: 283
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Windows-1251 codepage

Post by Arvid » Sat Jan 15, 2022 2:10 pm

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

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests