Support » Allgemeine Fragen » Unicode dezimal in WP DB

  • Anonymous User 17612203

    (@anonymized-17612203)


    Seit einiger Zeit speichert Worpress bespielsweise ein Apostroph als & # 3 9 ; (ohne Leerzeichen) in verschiedenen Tabellen wenn ich einen neuen Artikel veröffentliche.

    Auf der Website wird dann alles richtig abgespeichert, im Newsletter wird das Apostroph aber als & # 3 9 ; dargestellt.

    In älteren Artikeln steht in der DB das Apostroph.

    Warum wird das jetzt plötzlich anders in der DB abgespeichert und wie kann ich das ändern?

Ansicht von 4 Antworten - 1 bis 4 (von insgesamt 4)
  • Seit einiger Zeit speichert Worpress bespielsweise ein Apostroph als & # 3 9 ; (ohne Leerzeichen) in verschiedenen Tabellen wenn ich einen neuen Artikel veröffentliche.

    Das kann ich für eine WordPress-Installation ohne zusätzliche Plugins nicht bestätigen. Ich habe gerade rasch in einer Testumgebung einen neuen Beitrag geschrieben und einen Absatz mit mehreren Apostrophen eingefügt. Dies wird dann in der Datenbank in der Tabelle wp_posts im Feld post_content so abgelegt:

    <!-- wp:paragraph -->
    <p>"Don't you dare…" sagt man in Amerika. Der Apostroph ' ersetzt einen Wortteil und ist damit ein Auslassungszeichen, anders als beim Deppen-Apstroph wie z.B. in Lisa's Imbis's.</p>
    <!-- /wp:paragraph -->

    Wie ist in der wp-config.php die Einstellung für den verwendeten Zeichensatz?
    define( 'DB_CHARSET', 'utf8' );

    Welcher Zeichensatz ist für die Datenbank eingestellt?

    Dann wären ein paar Informationen zu deiner Website hilfreich. Unter Werkzeuge > Website-Zustand > Bericht findest du einen Button, um die relevanten Daten zu kopieren. Du kannst sie dann unverändert (einschließlich der Akzentzeichen) hier einfügen.

    Thread-Starter Anonymous User 17612203

    (@anonymized-17612203)

    Hallo Bego

    Danke für Deine Antwort. Das hier steht in der wp-config:

    /** Database Charset to use in creating database tables. */
    define(‚DB_CHARSET‘, ‚utf8mb4‘);
    /** The Database Collate type. Don’t change this if in doubt. */
    define(‚DB_COLLATE‘, “);

    Site Health
    —————

    
    ### wp-core ###
    
    version: 5.3.2
    site_language: en_US
    user_language: en_US
    timezone: Europe/Berlin
    permalink: /%postname%/
    https_status: true
    user_registration: 0
    default_comment_status: open
    multisite: false
    user_count: 2
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/www/live/wordpress
    wordpress_size: loading...
    uploads_path: /home/www/live/wordpress/wp-content/static
    uploads_size: loading...
    themes_path: /home/www/live/wordpress/wp-content/themes
    themes_size: loading...
    plugins_path: /home/www/live/wordpress/wp-content/plugins
    plugins_size: loading...
    database_size: loading...
    total_size: loading...
    
    ### wp-dropins (3) ###
    
    advanced-cache.php: true
    maintenance.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: alante
    version: 1.0
    author: ThinkUpThemesf
    author_website: (undefined)
    parent_theme: none
    theme_features: automatic-feed-links, post-thumbnails, post-formats, title-tag, custom-background, custom-header, custom-logo, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, menus, widgets, editor-style
    theme_path: /home/www/live/wordpress/wp-content/themes/alante
    
    ### wp-themes-inactive (2) ###
    
    Alante: version: 1.1.10, author: ThinkUpThemes
    Twenty Twenty: version: 1.1, author: the WordPress team
    
    ### wp-mu-plugins (2) ###
    
    Health Check Troubleshooting Mode: author: (undefined), version: 1.7.0
    wp-hide-loader.php: author: (undefined), version: (undefined)
    
    ### wp-plugins-active (89) ###
    
    Accordions by PickPlugins: version: 2.1.17, author: PickPlugins
    Accordion Shortcodes: version: 2.4.2, author: Phil Buchanan
    Admin Page Notes: version: 1.1.0, author: Josh Mallard
    Advanced Cron Manager: version: 2.3.10, author: BracketSpace
    AJAX Thumbnail Rebuild: version: 1.13, author: junkcoder, ristoniinemets
    All-in-One WP Migration: version: 7.15, author: ServMask
    All In One WP Security: version: 4.4.2, author: Tips and Tricks HQ, Peter Petreski, Ruhul, Ivy
    Antispam Bee: version: 2.9.1, author: pluginkollektiv
    Autoclear Autoptimize Cache: version: 2.0.0, author: Theme Surgeons
    Autoptimize: version: 2.6.1, author: Frank Goossens (futtta)
    AVH Extended Categories Widgets: version: 4.0.6, author: Peter van der Does
    BackWPup: version: 3.7.0, author: Inpsyde GmbH
    Blackhole for Bad Bots: version: 2.7, author: Jeff Starr
    Block Bad Queries (BBQ): version: 20191109, author: Jeff Starr
    Blog2Social: Social Media Auto Post & Scheduler: version: 6.0.0, author: Blog2Social, Adenion
    Bounce Handler Mailpoet: version: 1.3.20, author: Tikweb
    Broken Link Checker: version: 1.11.10, author: ManageWP
    Cache Enabler: version: 1.3.4, author: KeyCDN
    CAOS: version: 3.1.3, author: Daan van den Bergh
    Categorized Tag Cloud: version: 1.2.15, author: WhileTrue
    Category Order and Taxonomy Terms Order: version: 1.5.7.1, author: Nsp-Code
    Category Sticky Post: version: 2.10.1, author: Tom McFarlin
    Contact Form 7: version: 5.1.6, author: Takayuki Miyoshi
    Custom 404 Pro: version: 3.2.15, author: Kunal Nagar
    Custom Archive Titles: version: 1.1, author: ThemeZee
    Disable Comments: version: 1.10.2, author: Samir Shah
    Ditty News Ticker: version: 2.2.12, author: Metaphor Creations
    Download Attachments: version: 1.2.23, author: dFactory
    Easy FancyBox: version: 1.8.18, author: RavanH
    Easy Post Note: version: 1.4.1, author: arcticanaudio
    Elementor: version: 2.8.4, author: Elementor.com
    Elementor Addon Elements: version: 1.6, author: WP Vibes
    EWWW Image Optimizer: version: 5.1.4, author: Exactly WWW
    Excerpts for Pages: version: 1.6, author: Joan Boluda
    Extend Image Block: version: 1.0.0, author: Team Jazz, Liip AG
    Fast Velocity Minify: version: 2.7.7, author: Raul Peixoto
    footnotes: version: 1.6.5, author: ManFisher Medien ManuFaktur
    GDPR Cookie Consent: version: 1.8.2, author: WebToffee
    Google Analytics Opt-Out: version: 2.2.6, author: WP-Buddy
    Gutenberg: version: 7.3.0, author: Gutenberg Team
    Honeypot for Contact Form 7: version: 1.14.1, author: Nocean
    Image Source Control: version: 1.10.3, author: Thomas Maier
    jQuery Manager for WordPress: version: 1.10.4, author: Remzi Cavdar
    Leverage Browser Caching: version: 1.9, author: Rinku Yadav
    MailPoet 3 (New): version: 3.43.1, author: MailPoet
    MailPoet 3 Premium (New): version: 3.0.79, author: MailPoet
    NextScripts: Social Networks Auto-Poster: version: 4.3.11, author: NextScripts
    No Category Base (WPML): version: 1.3, author: Marios Alexandrou
    Open Graph and Twitter Card Tags: version: 2.2.7.2, author: Webdados
    OSD Exclude From Search Results: version: 2.4, author: OSD Web Development Team
    Parent Category AutoCheck + Category Tree Checklist: version: 1.1.8, author: Alex Egorov
    Popup Maker: version: 1.8.14, author: Popup Maker
    Public Post Preview: version: 2.9.0, author: Dominik Schilling
    Redirection: version: 4.6.2, author: John Godley
    Relevanssi: version: 4.4.1, author: Mikko Saari
    Remove IP: version: 0.1, author: guido
    Remove Query Strings From Static Resources: version: 1.4, author: Speed Up My Website
    REST API Log: version: 1.6.7, author: Pete Nelson
    RSS Feed Styles: version: 1.0.6, author: lerougeliet
    Search & Replace: version: 3.2.1, author: Inpsyde GmbH
    Search Regex: version: 1.4.16, author: John Godley
    Server Info: version: 2.5.3, author: Usman Ali Qureshi
    Shariff Wrapper: version: 4.6.4, author: Jan-Peter Lambeck & 3UU
    ShortCode Redirect: version: 1.0.02, author: Cartpauj
    Smart Slider 3: version: 3.3.26, author: Nextend
    Smart User Slug Hider: version: 4.0.0, author: Peter Raschendorfer
    Specify a Vary: Accept-Encoding Header: version: 1.0.0, author: LithiumSixteen
    Theme My Login: version: 7.0.15, author: Theme My Login
    Ultimate Addons for Gutenberg: version: 1.14.6, author: Brainstorm Force
    Ultimate Category Excluder: version: 1.1, author: Marios Alexandrou
    Visual Link Preview: version: 2.0.2, author: Bootstrapped Ventures
    WCK - Custom Fields and Custom Post Types Creator: version: 2.2.5, author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
    Webcraftic Clearfy – WordPress optimization plugin: version: 1.6.3, author: Webcraftic <wordpress.webraftic@gmail.com>
    Webcraftic Disable Admin Notices Individually: version: 1.1.1, author: Webcraftic <wordpress.webraftic@gmail.com>
    Widget Context: version: 1.2.0, author: Kaspars Dambis
    Wordpress Hide Posts: version: 0.4.0, author: Martin Jankov
    WP Add Custom CSS: version: 1.1.5, author: Daniele De Santis
    WP Attachments: version: 4.4, author: Marco Milesi
    WP Custom Admin Interface: version: 7.20, author: Martin Gibson
    WP Dashboard Notes: version: 1.0.9, author: Jeroen Sormani
    wpDiscuz: version: 5.3.5, author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
    WP GDPR Compliance: version: 1.5.2, author: Van Ons
    WP Mail SMTP Plugin by Mail Bank: version: 4.0.10, author: Tech Banker
    WP Performance Score Booster: version: 1.9.2.2, author: Dipak C. Gajjar
    WP Rollback: version: 1.7.0, author: Impress.org
    WProofreader: version: 2.5, author: WebSpellChecker
    WP to Hootsuite: version: 1.1.9, author: WP Zinc
    XML Sitemap & Google News: version: 5.2.7, author: RavanH
    Yoast SEO: version: 12.9.1, author: Team Yoast
    
    ### wp-plugins-inactive (11) ###
    
    Asset CleanUp: Page Speed Booster: version: 1.3.5.3, author: Gabriel Livan
    Async JavaScript: version: 2.19.07.14, author: Frank Goossens (futtta)
    Easy Footnotes: version: 1.1.4, author: Jason Yingling
    Health Check & Troubleshooting: version: 1.4.2, author: The WordPress.org community
    Modern Footnotes: version: 1.3.9, author: Prism Tech Studios
    Optimize Database after Deleting Revisions: version: 4.8.8, author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
    Regenerate Thumbnails: version: 3.1.2, author: Alex Mills (Viper007Bond)
    Revive Old Posts: version: 8.5.2, author: revive.social
    Theme Check: version: 20190801.1, author: Otto42, pross
    Tooltip CK: version: 2.2.5, author: Cédric KEIFLIN
    WebP Express: version: 0.17.2, author: Bjørn Rosell
    
    ### wp-media ###
    
    image_editor: EWWWIO_Imagick_Editor
    imagick_module_version: 1687
    imagemagick_version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
    gd_version: 2.2.5
    ghostscript_version: 9.26
    
    ### wp-server ###
    
    server_architecture: Linux 4.9.0-6-amd64 x86_64
    httpd_software: Apache
    php_version: 7.3.13-1+0~20191218.50+debian9~1.gbp23c2da 64bit
    php_sapi: apache2handler
    max_input_variables: 1000
    time_limit: 6000
    memory_limit: 1024M
    max_input_time: -1
    upload_max_size: 150M
    php_post_max_size: 150M
    curl_version: 7.52.1 OpenSSL/1.0.2u
    suhosin: false
    imagick_availability: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.22-log
    client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/www/live/wordpress/wp-content
    WP_PLUGIN_DIR: /home/www/live/wordpress/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 1024M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: false
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    

    Das Plugin Elementor ändert einfache Hochkommas (Apostrophen) in typographische „Single Quote“-Zeichen, aber der Text wird trotzdem in der Datenbank als reines UTF-8 ohne Character Entities abgelegt – ob hier die Ursache zu sehen ist, weiß ich nicht. Du könntest ja mal schauen, ob ein Beitrag, den du ohne Elementor erstellst, den gleichen Fehler hat.

    Bei der Anzahl verwendeter Plugins dürfte die Website viel Aufwand bei Verwaltung und Pflege verursachen. Du hältst immer alles auf dem Neuesten Stand? Ich würde versuchen, das zu reduzieren.

    Thread-Starter Anonymous User 17612203

    (@anonymized-17612203)

    Klar halte ich immer alles auf neuestem Stand… der Aufwand ist gering.

    Elementor nutze ich nur für Pages, die Posts sind alle mit Gutenberg gemacht. Elementor ist für Posts deaktiviert.

Ansicht von 4 Antworten - 1 bis 4 (von insgesamt 4)
  • Das Thema „Unicode dezimal in WP DB“ ist für neue Antworten geschlossen.