Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Setzen von CharacterSet via htaccess

Empfohlene Antworten

Gibt es eine Möglichkeit mit einer Apache Einstellung (speziell in der .htaccess) festzulegen, dass eine Datei mit einem bestimmten Content-Type header ausgeliefert wird?

thx

mfg

Eth

Hmmm ... funzt irgendwie nicht. kommt immer noch Content-Type text/html; charset=ISO-8859-1 an

Kann das an PHP liegen? Oder an den Rewrite rules die ich noch hab...

normalerweise hat apache prorität vor encodings, die im quelltext angegeben sind. schau mal, ob PHP irgendwelche header()s schickt, da dann die vom apachen durchgesetzten nicht greifen.

btw, hast du die änderungen in der globalen konfiguration vorgenommen? wenn ja, -> apachectl restart. in der lokalen konfig (htaccess) sollte neustarten nicht notwendig sein.

s'Amstel

Jetzt meint er er würde "Content-Type nich kennen" ::


[Fri Mar 24 22:04:32 2006] [alert] [client 84.135.91.157] /srv/www/webnauts_net/testserver/main/.htaccess: Invalid command 'Content-Type', perhaps mis-spelled or defined by a module not included in the server configuration

Ich hab es jetzt relativ simpel gelöst:


AddDefaultCharset UTF-8

vielleicht nicht die Beste lösung aber tut erstmal ihren dienst...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.