Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Ä, ö und ü Wird als ? angezeigt

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.989
    • Geschlecht:
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #15 am: 26. Februar 2014, 20:23:18
    Mein non d'accord bezog sich auf
    Zitat
    als iso-8859-15 abspeichern, auch wenn der shop auf utf-8 läuft.

    Gruß
    Ronny

    :?: Wo sollte ich sowas gesagt haben ?

    Meine Aussage
    Zitat
    Das ist nicht nötig wenn man die Sprach-Files in der korrekten Codierung abspeichert, also in diesem Fall iso-8859-15, was man sich ohnehin angewöhnen sollte, auch für den Fall, daß der Shop auf UTF-8 läuft.
    war vielleicht mißverständlich ausgedrückt.
    Ich sage aber ja "in der korrekten Codierung, also in diesem Fall iso-8859-15..." (Fettdruck im Nachhinein zur Verdeutlichung).
    Im Fall UTF-8 dann natürlich in UTF-8 speichern.
    Der Nachsatz "was man sich ohnehin angewöhnen sollte..."
    sollte sich auf "korrekte Codierung" beziehen, nicht auf "in diesem Fall iso-8859-15".

    Wäre das auch geklärt ;-).

    Gruß,
    noRiddle

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #16 am: 26. Februar 2014, 20:33:04
    Kommen wir zu der Übereinkunft, dass es wichtig ist die Sprachdateien jeweils in der richtigen Codierung zu speichern?  ;-)

    Denn deinen Satz kann man wirklich (wie ich es getan habe) missverstehen.

    Gruß
    Ronny

    ShopNix

    • Viel Schreiber
    • Beiträge: 1.208
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #17 am: 27. Februar 2014, 08:20:44
    Die Einigkeit kommt näher. ;-)

    Man muss im Hinterkopf behalten, dass man bei der Geschichte eine ganze Reihe von Fehlern machen kann. In den Sprachdateien werden Texte für JavaScript schon anders behandelt als die für HTML. Ich erinnere daran, wie oft man HTML-Entities in JavaScript-Meldungen sieht.

    Dann kommt noch die Datenbank, die, je nach Konfiguration, die Datensätze bei Auslieferung konvertiert.

    Wenn wir diese Diskussion zu einem sinnvollen Ende bringen wollten, müssten wir eine Checkliste der Punkte aufstellen, die zu beachten sind, und das sind gar nicht mal so wenige.

    So nebenbei war die Debatte ein Musterbeispiel dafür, wie man in Foren an einander vorbei schwätzen und sich dabei in Rage diskutieren kann.  :popcorn:

    61lazzo

    • Mitglied
    • Beiträge: 101
    • Geschlecht:
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #18 am: 27. Februar 2014, 09:41:37
    Die Attribute von schema.org werden erst durch HTML5 valide, du nutzt aber XHMTL 1.0.

    Bezüglich der Umlautproblematik. Vergleiche bitte, ob deine .htaccess im oberen Teil auch so aussieht.
    Code: PHP  [Auswählen]
    #AddDefaultCharset UTF-8
    AddDefaultCharset ISO-8859-15

    Wenn das alles so passt, musst du deine Sprachvariablen auch mit den richtigen HTML-Entities schreiben.
    Also statt Verfügbarkeit muss es dann Verfügbarkeit heißen.

    Gruß
    Ronny

    Danke für die Hilfe ich benutze die htaccess gar nicht die ist bei mir als htaccess.txt .
    Die Sprachvariablen wurden ja dem entsprechend schon geändert es ist ja nur auf der product_info.php so das sie nicht angezeigt werden.

    Vielen dank für die Hilfe

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #19 am: 27. Februar 2014, 09:51:46
    Sende mir mal bitte über mein Häusschensymbol die FTP-Daten vom Shop.

    Gruß
    Ronny

    ShopNix

    • Viel Schreiber
    • Beiträge: 1.208
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #20 am: 27. Februar 2014, 11:02:25
    Danke für die Hilfe ich benutze die htaccess gar nicht die ist bei mir als htaccess.txt .

    Du bist wirklich der Oberheld.  :rofl:

    Wenn die Zeile in Deiner .htaccess fehlt, schickt der Webserver seine Default-Einstellung mit.

    Warum willst Du nur alles anders machen, als es vorgesehen ist? Damit musst Du zwangsläufig auf die Schnauze fallen, und das tust Du ja nun auch bei jedem 2. Schritt.

    Ist Dein Schädel wirklich stabiler als die Wand?

    61lazzo

    • Mitglied
    • Beiträge: 101
    • Geschlecht:
    Re: Ä, ö und ü Wird als ? angezeigt
    Antwort #21 am: 27. Februar 2014, 11:37:58
    Also seit dem das shop installiert ist war die htaccess als txt im server drauf ?!
    Was hab ich damit zutun -.-
    Die datei ist gefüllt mit :
    Code: PHP  [Auswählen]
    ##-- $Id: .htaccess 3209 2012-07-12 11:51:11Z gtb-modified $

    ##-- Default charset
    #AddDefaultCharset UTF-8
    AddDefaultCharset ISO-8859-15

    ##-- Disable the server signature
    ServerSignature Off

    ##-- Turn off ETags in HTTP-header (use both directives)
    <IfModule mod_headers.c>
      Header unset ETag
    </IfModule>
    FileETag None

    ##-- When caching of gzipped JS and CSS files is used, enable this setting
    #<IfModule mod_headers.c>
    #  Header set Vary Accept-Encoding
    #</IfModule>

    ##-- when using Provider 1&1 set the following lines to activate PHP5
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    # Disable directory browsing (disabled by default as this causes problems on some servers)
    #Options All -Indexes

    ##-- Enable the compression for any type of content
    #<IfModule mod_deflate.c>
    #  <FilesMatch "\\.(js|css|html|htm|php|xml|jpg|jpeg|png|gif)$">
    #    SetOutputFilter DEFLATE
    #  </FilesMatch>
    #</IfModule>

    ##-- Customization of HTTP request and response headers
    <IfModule mod_headers.c>
      <FilesMatch "\\.(ico|jpe?g|png|gif|swf|flv)$">
        Header set Cache-Control "max-age=2592000, public"
      </FilesMatch>
      <FilesMatch "\\.(css)$">
        Header set Cache-Control "max-age=604800, public"
      </FilesMatch>
      <FilesMatch "\\.(js)$">
        Header set Cache-Control "max-age=216000, private"
      </FilesMatch>
      <FilesMatch "\\.(xml|txt)$">
        Header set Cache-Control "max-age=216000, public, must-revalidate"
      </FilesMatch>
      <FilesMatch "\\.(html|htm|php)$">
        Header set Cache-Control "max-age=1, private, must-revalidate"
      </FilesMatch>
    </IfModule>

    ##-- Generation of Expires and Cache-Control HTTP headers
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 seconds"
      ExpiresByType image/gif "access plus 2592000 seconds"
      ExpiresByType image/jpeg "access plus 2592000 seconds"
      ExpiresByType image/png "access plus 2592000 seconds"
      ExpiresByType text/html "access plus 1 seconds"
      ExpiresByType text/css "access plus 604800 seconds"
      ExpiresByType text/javascript "access plus 216000 seconds"
      ExpiresByType application/x-javascript "access plus 216000 seconds"
    </IfModule>

    ##-- Configure php_flags if necessary
    ##-- BEGIN - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #<IfModule mod_php.c>

      ##-- Warn when arguments are passed by reference at function call time (from PHP5 allow_call_time_pass_reference is deprecated)
     #php_flag allow_call_time_pass_reference on

      ##-- Disable transparent sid support PHP-default is off (XTC Session only on first visit)
     #php_flag session.use_trans_sid off

      ##-- set suhosin flags because of errors with attributes (for webhosters with suhosin hardening patch enabled)
     #php_value suhosin.post.max_array_depth 0
     #php_value suhosin.post.max_array_index_length 0
     #php_value suhosin.post.max_vars 0
     #php_value suhosin.request.max_array_depth 0
     #php_value suhosin.request.max_array_index_length 0
     #php_value suhosin.request.max_vars 0

      ##-- set suhosin flags to have unencrypted session data, affecting "whos_online" & "shopping cart" (for webhosters with suhosin hardening patch enabled)patch enabled
     #php_value suhosin.session.encrypt Off
     #php_value suhosin.session.cryptkey ''

    ##-- END - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #</IfModule>

    ##-- Redirect error pages to Sitemap
    ##-- set the correct Path to ErrorDocument
    ErrorDocument 400 /sitemap.html?error=400
    ErrorDocument 401 /sitemap.html?error=401
    ErrorDocument 402 /sitemap.html?error=402
    ErrorDocument 403 /sitemap.html?error=403
    ErrorDocument 404 /sitemap.html?error=404
    ErrorDocument 500 /sitemap.html?error=500

    ##-----------------------------------------
    ##- SEO Shopstat Modul (Hartmut Koenig)
    ##-----------------------------------------
    <IfModule mod_rewrite.c>
      ##-- Initialize and enable rewrite engine
     ##-- Documentation http://httpd.apache.org/docs/misc/rewriteguide.html
     RewriteEngine On

      ##-- EXAMPLE: If your shop is located at "http://www.yourdomain.com/shop",
     ##-- set the following line like e.g.: RewriteBase /shop/
     RewriteBase /mshop/

      ##-- Use canonical URLs
     ##-- redirect to www-domain, when www is missing and no subdomain given and not using an ssl-proxy
     ##-- HostEurope
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.webpack\.de$ [NC]
     ##-- 1und1
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.kundenserver\.de$ [NC]
     ##-- domainFACTORY
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^sslsites\.de$ [NC]
     ##-- All-Inkl
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl-account\.com$ [NC]
     ##-- Strato
     #RewriteCond %{HTTP:X-Forwarded-Server}   !^www\.ssl-id\.de$ [NC]

      #RewriteCond %{HTTP_HOST}                 !^www\.(.*) [NC]
     #RewriteCond %{HTTP_HOST}                 !^(.*)\.(.*)\.(.*) [NC]
     #RewriteCond %{HTTP_HOST}                 !^localhost(.*)$ [NC]
     #RewriteRule ^(.*)                        http://www.%{HTTP_HOST}/$1 [R=301,L]

      ##-- Sitemap
     RewriteRule ^sitemap(.*)\.html$ shop_content.php?coID=8 [QSA,L]

      ##----------------------------------------------------------------------------------
     ##-- When working with SEO-Urls you can decide, whether to use a colon ":" or a dash "-" symbol
     ##-- (Windows Servers might have problems with colon as delimiter!)
     ##-- Change the delimiter symbol also in file "/inc/shopstat_functions.inc.php"
     ##----------------------------------------------------------------------------------

      ##-- Use colon delimiter ":" for SEO-URLS (default setting)
     ##-- Categories (:::)
     RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
      RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

      ##-- Products (::)
     RewriteRule (.*)::(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

      ##-- Content (:_:)
     RewriteRule (.*):_:([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

      ##-- Manufacturers (:.:)
     RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
      RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
      RewriteRule (.*):.:([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]

      ##-- Use dash delimiter "-" for SEO-URLS
     ##-- Categories (---)
     #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)-([_0-9]+)\.html$
     #RewriteRule (.*)---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
     #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)\.html$
     #RewriteRule (.*)---([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

      ##-- Products (--)
     #RewriteRule (.*)--(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

      ##-- Content (-_-)
     #RewriteRule (.*)-_-([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

      ##-- Manufacturers (-.-)
     #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)-([_0-9]+)\.html$
     #RewriteRule (.*)-.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
     #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)\.html$
     #RewriteRule (.*)-.-([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]
    </IfModule>
     

    Hmm versteh ich ned...
    13 Antworten
    7780 Aufrufe
    29. Januar 2014, 19:07:52 von noRiddle (revilonetz)
    5 Antworten
    4396 Aufrufe
    04. Dezember 2013, 17:38:31 von sascha247
    20 Antworten
    10009 Aufrufe
    09. August 2010, 16:32:22 von rayzob
    2 Antworten
    3598 Aufrufe
    16. Mai 2012, 17:47:56 von Inhalator