Posts: 3
Threads: 1
Joined: Sep 2020
2020-09-09, 03:13:40
(This post was last modified: 2020-09-09, 03:14:32 by Dimus.)
Hi guys! I never used Getsimple until today and I have a question. I making a website for old devices like Palm, which does nothing know about UTF 8.
I would like to set in the website windows-1251 codepage instead of UTF-8.
How can I do this?
I'll appreciate your answers! Thanks.
Posts: 538
Threads: 12
Joined: May 2013
Set your http-equiv content-type to WINDOWS-1251:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1251">
If it doesn't help, you can try commenting out the line "AddDefaultCharset utf-8" in the httpd.conf.
Posts: 3
Threads: 1
Joined: Sep 2020
2020-09-09, 06:37:02
(This post was last modified: 2020-09-09, 06:43:58 by Dimus.)
(2020-09-09, 04:32:01)Bigin Wrote: Set your http-equiv content-type to WINDOWS-1251:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=WINDOWS-1251">
If it doesn't help, you can try commenting out the line "AddDefaultCharset utf-8" in the httpd.conf.
I did it before writing here of cause. It doesn't work unfortunately.
Posts: 538
Threads: 12
Joined: May 2013
2020-09-09, 16:40:27
(This post was last modified: 2020-09-09, 16:41:12 by Bigin.)
Are all characters that are displayed like this or does it only affect the content that comes from XML? What happens if you write a string directly in your template (hard-coded)?
Posts: 3
Threads: 1
Joined: Sep 2020
(2020-09-09, 16:40:27)Bigin Wrote: Are all characters that are displayed like this or does it only affect the content that comes from XML? What happens if you write a string directly in your template (hard-coded)?
All characters that are displayed like this, yeah. The same thing if I wright russian text in the template.
Posts: 538
Threads: 12
Joined: May 2013
2020-09-10, 14:47:44
(This post was last modified: 2020-09-10, 14:49:50 by Bigin.)
Probably has nothing to do with GS, your server/php returns data in the wrong format.