Forum
How do I prevent ® and ™ in slugs
I have the latest version of Perch running on a client's website and have a News stream, that is the basis for an RSS feed.
Once in a while the client mentions registered trademarks in the text field, that is used to create the slug.
Unfortunately the slug still contains the ® as is.
I suspect, that is due to some server setting.
How do I force symbols like ® and ™ to be converted to regular letters—or even better have them completely parsed out (dunno, if that is the correct expression).
They should be already. Can you show us your diagnostics report?
Hi Drew,
here's the report (I xxx-ed some of the stuff out for security reasons). Let me know, if you need more information.
Trademarks should be being correctly transliterated in your configuration.
I just realized, that trademarks (™) are converted to "tm", registered Rs (®) are not.
Tried it on a different web server. There it converts to an "r", which would be okay.
Any ideas, why that doesn't work on the configuration above?
I wouldn't mind, if the ® was skipped by the slug altogether, as that would help keep the URL more readable.
Is the diagnostic above from the server where the transliteration isn't happening?
That's right.
Are the files the same in both places?
No, they are not.
It is the same Perch version, but PHP 5.4.4 on the other machine (instead of 5.4.45-1 on the "faulty" machine).
It is another client's website on the server I used for testing, as that was the quickest way to see, if it is the default behavior, that the ® is not converted.
Ok, well this is supposed to work, but it is dependant on the server being able to do the transliteration correctly.
I'll see if I can add another special cases to get this to work better.
Sounds great. Thanks a lot. I will have the client fix it manually for now.