Forum

Thread tagged as: Problem, Error, Blog

Blog-App postUrl and "ß"

I just discovered, that the blog-app correctly uses different characters for öÖ, üÜ, äÄ etc, but it doesn't replace "ß", which is &szlig.

I print out my posts with perch_blog_recent_posts(); The array shows, that the postSlug has no replacement for ß. Maybe a bug?

Thomas Semmler

Thomas Semmler 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That code is in PHP rather than Perch. Can I see your diagnostics?

Sure:

Perch: 2.7.4
Production mode: Production (100)
Installed apps: content (2.7.4), assets (2.7.4), categories (2.7.4), perch_blog (4.5.2)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: ckeditor, markitup
H1: 421aa90e079fa326b6494f812ad13e79
L1: d492ffbda6e5694f32829d2bd6b9fe55
headerColour: #2c518b
content_singlePageEdit: 1
helpURL: mailto:support@ip.co.at
siteURL: /oegs
hideBranding: 1
content_collapseList: 1
lang: de-de
update_2.7.1: done
latest_version: 2.5.3
on_sale_version: 2.7.4
headerScheme: dark
perch_blog_post_url: aktuelles/{postSlug}
perch_blog_slug_format: {postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_blog_update: 5.0
update_2.7.2: done
update_2.7.4: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: oegs_perch
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: oegs
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/Vienna
PERCH_EMAIL_FROM: ts@ip.co.at
PERCH_EMAIL_FROM_NAME: Thomas Semmler
PERCH_LOGINPATH: /oegs/perch
PERCH_PATH: /Library/WebServer/Documents/oegs/perch
PERCH_CORE: /Library/WebServer/Documents/oegs/perch/core
PERCH_RESFILEPATH: /Library/WebServer/Documents/oegs/perch/resources
PERCH_RESPATH: /oegs/perch/resources
PERCH_HTML5: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Library/WebServer/Documents/oegs/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS

PHP: 5.6.2
Zend: 2.6.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: f373ea5dd5538761406a8022a4b8a374418b240e $
MySQL server: 5.6.21
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, odbc, mysqli, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, posix, Reflection, mysql, shmop, SimpleXML, snmp, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, apache2handler, imagick, mhash
GD: Yes
ImageMagick: Yes
PHP max upload size: 2M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 2M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: localhost
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
HTTP_REFERER: https://localhost/oegs/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,de;q=0.6,fr;q=0.4,pt;q=0.2,sk;q=0.2,nb;q=0.2
HTTP_COOKIE: PHPSESSID=a94004qd1mbk1idk1vfdge0s46; cmsa=1
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache/2.4.9 (Unix) PHP/5.6.2
SERVER_NAME: localhost
SERVER_ADDR: ::1
SERVER_PORT: 80
REMOTE_ADDR: ::1
DOCUMENT_ROOT: /Library/WebServer/Documents
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /Library/WebServer/Documents
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Library/WebServer/Documents/oegs/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 55871
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /oegs/perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /oegs/perch/core/settings/diagnostics/index.php
PHP_SELF: /oegs/perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1417103192.406
REQUEST_TIME: 1417103192
Drew McLellan

Drew McLellan 2638 points
Perch Support

I would expect that to work, as you have the native PHP transliteration functionality available.

The problem still exists, but we just added

RewriteRule (blog)\/([a-zA-Z0-9_\-\xC3\x9F]+)$      index.php?content=$1&slug=$2 [L,QSA,N,E=utf8_fixed:1]

to fix it.