website issues: boinc-wide team info and encoding

Everything about the project RNA World
Nachricht
Autor
Benutzeravatar
rilian
PDA-Benutzer
PDA-Benutzer
Beiträge: 47
Registriert: 08.02.2010 15:38
Kontaktdaten:

website issues: boinc-wide team info and encoding

#1 Ungelesener Beitrag von rilian » 08.02.2010 15:40

hello!

i have another questions about BOINC-wide...

how often and how many times you would overwrite team info with info that is stored on BOINC-wide ? When you overwrite, is there an option to only add new teams and do not touch those already on site? I want to add exact link to RNA World subforum of my team and it gets overwrited with default forum link

Another thing, there is smth with RNA world encoding, because UTF text (Cyrillic) from BOINC-wide team info here shows like "???".

I think this will be fixed if you add to page header

Code: Alles auswählen

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">



thanks

--
rilian
team Ukraine
I crunch for Ukraine

Benutzeravatar
yoyo
Vereinsvorstand
Vereinsvorstand
Beiträge: 8048
Registriert: 17.12.2002 14:09
Wohnort: Berlin
Kontaktdaten:

Re: website issues: boinc-wide team info and encoding

#2 Ungelesener Beitrag von yoyo » 08.02.2010 16:58

rilian hat geschrieben: how often and how many times you would overwrite team info with info that is stored on BOINC-wide ?
Every 24h.
rilian hat geschrieben: When you overwrite, is there an option to only add new teams and do not touch those already on site?
There is no such option. The values from the Boinc wide team are used.
rilian hat geschrieben: Another thing, there is smth with RNA world encoding, because UTF text (Cyrillic) from BOINC-wide team info here shows like "???".

I think this will be fixed if you add to page header

Code: Alles auswählen

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
Content-Type is set based on the translation file. The content of CHARSET is used and set as content-type.

yoyo
HILF mit im Rechenkraft-WiKi, dies gibts zu tun.
Wiki - FAQ - Verein - Chat

Bild Bild

Benutzeravatar
rilian
PDA-Benutzer
PDA-Benutzer
Beiträge: 47
Registriert: 08.02.2010 15:38
Kontaktdaten:

Re: website issues: boinc-wide team info and encoding

#3 Ungelesener Beitrag von rilian » 08.02.2010 17:12

1) what's the point in overwriting everything every 24h?

2)

Code: Alles auswählen

<head>
<title>Your account</title>
<link rel=stylesheet type="text/css" href="main.css" media="all" />
<link rel=stylesheet type="text/css" href="http://www.rnaworld.de/rnaworld/bolt.css">
<link rel=alternate type="application/rss+xml" title="RNA World (beta) RSS 2.0" href="http://www.rnaworld.de/rnaworld/rss_main.php">
</head>
there is nothing in current RNA website pages that tells browser what character set to use (for example my default english Firefox sets "WESTERN (ISO-8859-1)" encoding).
So every user should go to their browser settings and set encoding for this particular site. Or, where is this language setting in http://www.rnaworld.de/rnaworld/home.php ?
I crunch for Ukraine

Benutzeravatar
rilian
PDA-Benutzer
PDA-Benutzer
Beiträge: 47
Registriert: 08.02.2010 15:38
Kontaktdaten:

Re: website issues: boinc-wide team info and encoding

#4 Ungelesener Beitrag von rilian » 08.02.2010 17:18

here are some screenshots

1: current UOTD. Clearly has problems with some special characters
Bild

2. team info on BOINC-wide site. All is ok
Bild

3. what we get on RNA site
Bild
I crunch for Ukraine

Benutzeravatar
yoyo
Vereinsvorstand
Vereinsvorstand
Beiträge: 8048
Registriert: 17.12.2002 14:09
Wohnort: Berlin
Kontaktdaten:

Re: website issues: boinc-wide team info and encoding

#5 Ungelesener Beitrag von yoyo » 08.02.2010 17:25

It is not in the html page. It is send as http header to the browser. Here is the code snippet from util.inc, which is used nearly in each generated page:

Code: Alles auswählen

    $charset = tra("CHARSET");
    if ($charset != "CHARSET") {
        header("Content-type: text/html; charset=$charset");
    }
    if (!$caching) {
        header ("Expires: Mon, 26 Jul 1997 05:00:00 UTC");    // Date in the past
        header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " UTC"); // always modified
        header ("Cache-Control: $cache_control_extra no-cache, must-revalidate, post-check=0, pre-check=0");  // HTTP/1.1
        header ("Pragma: no-cache");                          // HTTP/1.0
    }
$charset is retrieved from the translation file.

yoyo
HILF mit im Rechenkraft-WiKi, dies gibts zu tun.
Wiki - FAQ - Verein - Chat

Bild Bild

Benutzeravatar
rilian
PDA-Benutzer
PDA-Benutzer
Beiträge: 47
Registriert: 08.02.2010 15:38
Kontaktdaten:

Re: website issues: boinc-wide team info and encoding

#6 Ungelesener Beitrag von rilian » 08.02.2010 17:41

php sends charset info, but there is still problem with database encoding
I crunch for Ukraine

Antworten

Zurück zu „RNA World Discussions (english)“