« Project home page
my little forum
Log in
Register
Search:
Back to the entry by Sebastian Nast
Post reply
Reply to the message by
Sebastian Nast
Name:
E-mail:
(optional, won't be displayed directly)
Leave this field empty:
Homepage:
(optional)
Leave this field empty:
Location:
(optional)
Remember me (cookie)
Category:
General
Project organisation
Technics
Design/Themes
Features
Development
Todo
Bugs
German / Deutsch
Spanish / Español
French / Français
Accessibility/UX
Subject:
Formatting help
skip to input
format text bold
[b]bold text[/b]
format text italic
[i]italic text[/i]
insert hyperlink
[link=http://example.com/]link text[/link] / [link]http://example.com/[/link]
set text color
[color=#rgb]colored text[/color]
font size
[size=small]small text[/size]
[size=large]large text[/size]
insert list
[list][*]list item[/list]
insert image
[img]http://example.com/image.jpg[/img]
left: [img=left]http://example.com/image.jpg[/img]
right: [img=right]http://example.com/image.jpg[/img]
thumbnail: [img=thumbnail]http://example.com/image.jpg[/img]
thumbnail left: [img=thumbnail-left]http://example.com/image.jpg[/img]
thumbnail right: [img=thumbnail-right]http://example.com/image.jpg[/img]
upload image
upload image ...
insert TeX code
[tex]TeX code[/tex]
insert code
[inlinecode]code[/inlinecode]
[code]code[/code]
[code=css]code[/code]
[code=html]code[/code]
[code=javascript]code[/code]
[code=perl]code[/code]
[code=php]code[/code]
[code=sql]code[/code]
[code=xml]code[/code]
:-)
;-)
:-P
:-D
:-|
:-(
:yes:
:no:
:ok:
:lol:
:lol2:
:lol3:
:cool:
:surprised:
:angry:
:crying:
:waving:
:confused:
:lookaround:
:clap:
:love:
:tick:
Message:
> Hier nomal die Antwort von meinem IT-Spezie ... :-) > > [i][b]Nein, die 4 Möglichkeiten aus dem anderen Thread gingen bei dir nicht! > Das hatte ich natürlich alles vorher ausprobiert > > Die .htaccess mit den Angaben ist auch noch auf dem Server, das hatte keinerlei Änderung gemacht, und auch die anderen Möglichkeiten über ini_set('default_charset', 'ISO-8859-1'); usw haben eben leider nicht funktioniert, das wäre ja schön gewesen. Daher musste ich es über diesen unschönen Workaround machen > > Ich habe die entsprechende .htaccess nun auch in /forum_archiv/ gelegt, und auch hier geht es nicht, auch die anderen Lösungen werden dort nicht klappen. Und hier stehen auch ein paar Sachen darüber, das man es eben nicht global setzen kann > > http://php.net/manual/de/function.htmlspecialchars.php > > As of PHP 5.4 they changed default encoding from "ISO-8859-1" to "UTF-8". So if you get null from htmlspecialchars or htmlentities > > Unfortunately, as far as I can tell, the PHP devs did not provide ANY way to set the default encoding used by htmlspecialchars() or htmlentities(), even though they changed the default encoding in PHP 5.4 (*golf clap for PHP devs*). To save someone the time of trying it, this does not work: > > <?php > ini_set('default_charset', $charset); // doesn't work. > ?> > > Unfortunately, the only way to not have to explicitly provide the second and third parameter every single time this function is called (which gets extremely tedious) is to write your own function as a wrapper: > > Also das Problem, welches durch diese Änderungen aus dem Thread behoben werden kann, ist wie es ausssieht ein anderes Problem als das, welches bei deinem Forum die Probleme machte > [/b][/i] > > > Gruß > Sebastian
E-mail notification on reply of this posting
OK - Submit
Preview