åäö?
Posted: Tue Jan 08, 2008 1:02 pm
hello, my swedish characters åäö shows up as questions marks on serendipity, why is this ? :/
The calendar output happens with a system called "locale". If you use "de" for example, your server must have the "de_DE.UTF8" locale.However, the calender still shows ? for åäö, do you know why?
The "freetag" plugin, serendipity_event_freetag, available via spartacus.with Wich plugin can i set tags for every Blogg post?
You can change that by editing the index.tpl template file of your template, and changing the place where "serendipity_banner" is emitted. There you can replace $head_title with $blogTitle if you do not want to have entry titles in your HTML header.and when i enter a blogg entry, the name of my blogg is replaced with the name of the blogg entry, can this be changed so it wont ?
Ah. This is a feature of the template you're using. The designer thought that a good notation to use instead of calling it "Link to Homepage". You can edit that in the comments.tpl template file.izzlik wrote:here is the url... http://rizzler.se just check the comments of the first entry and you can se it.
It's not de_DE.UTF8, I gave that as an example. For swedish it's something different, I don't know that. Like sv_SE.UTF8 or something else!i contacted my server provider wich has confirmed twice that "The locale de_DE.UTF8 is already enabled on the server" and yes it looks like this for me at the callender http://img84.imageshack.us/img84/4161/cpki0.jpg
Code: Select all
<?php
header('Content-Type: text/html; charset=UTF-8');
@define('DATE_LOCALES', 'sv_SV.UTF8, sv_SV.UTF-8, swedish, sv, sv_SV, sv_SE.UTF8, sv_SE.UTF-8, sv_SE');
if (defined('DATE_LOCALES')) {
$locales = explode(',', DATE_LOCALES);
foreach ($locales as $locale) {
$locale = trim($locale);
if (setlocale(LC_TIME, $locale) == $locale) {
echo "Using $locale!<br />\n";
break;
}
}
}
echo "Last locale: $locale<br />\n";
for ($i = 0; $i <= 7; $i++) {
$ts = mktime(0, 0, 0, 1, $i, 2008);
echo strftime('%A', $ts) . "<br />\n";
}
Using swedish!
Last locale: swedish
m�ndag
tisdag
onsdag
torsdag
fredag
l�rdag
s�ndag
m�ndag
Code: Select all
@define('DATE_LOCALES', 'sv_SV.UTF8, sv_SV.UTF-8, sv_SE.UTF8, sv_SE.UTF-8');
i tryed to add sv_SE.utf8 to serendipity_lang_se.inc.php so it looks like this @define('DATE_LOCALES', 'sv_SE.UTF8, sv_SE.UTF-8, swedish, sv, sv_SE, sv_SE.UTF8, sv_SE.UTF-8, sv_SE');We have checked the code and found that the swedish character set sv_SV.utf8 is specified there. I did replace the code with sv_SE.utf8 and it is working fine now . You can verify this by accessing the URL:http://rizzler.se/test1.php . Please check this now and let me know if you need any help.
Code: Select all
<?php
header('Content-Type: text/html; charset=UTF-8');
@define('DATE_LOCALES', 'sv_SE.UTF8, sv_SE.UTF-8, swedish, sv, sv_SE, sv_SE.UTF8, sv_SE.UTF-8, sv_SE');
if (defined('DATE_LOCALES')) {
$locales = explode(',', DATE_LOCALES);
foreach ($locales as $locale) {
$locale = trim($locale);
if (setlocale(LC_TIME, $locale) == $locale) {
echo "Using $locale!<br />\n";
break;
}
}
}
echo "Last locale: $locale<br />\n";
for ($i = 0; $i <= 7; $i++) {
$ts = mktime(0, 0, 0, 1, $i, 2008);
echo strftime('%A', $ts) . "<br />\n";
}