Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sanitizer pageName with translate option and «» #779

Open
somatonic opened this issue Nov 5, 2014 · 1 comment
Open

sanitizer pageName with translate option and «» #779

somatonic opened this issue Nov 5, 2014 · 1 comment

Comments

@somatonic
Copy link

I have a page with title (importing)

«Froh, wenn alles ohne Schaden bleibt»

Sanitizer pageNameTranslate(title) returns a empty string.

Not the "«" "»" ? This seems to be the issue.

@ryancramerdesign
Copy link
Owner

I've looked into this and can confirm the behavior. The problem seems to be iconv. Here's a simple test case that duplicates it:

$test = '«Froh, wenn alles ohne Schaden bleibt»';
echo 'test: ' . iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $test);

The resulting string is just "test: <>". I'm not sure how to correct this, as it seems like an iconv bug? In PW perhaps the best thing to do would be to add the « and » to custom translations as specified in the InputfieldPageName module settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants