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

Translation of special characters (e g "ä") #56

Closed
mattiaslundback opened this issue Dec 17, 2012 · 3 comments
Closed

Translation of special characters (e g "ä") #56

mattiaslundback opened this issue Dec 17, 2012 · 3 comments

Comments

@mattiaslundback
Copy link

There is a problem in content.php. The function "htmlspecialchars" in row 501 in bolt/app/src/Bolt/Content.php makes some special characters often used in some western european countries (e g Germany) disappear. This makes the RSS-feed impossible to use in Germany and Scandinavia and probably some other countries.

@pvankouteren
Copy link
Contributor

I'll have a look at this. Thanks for reporting!

@ghost ghost assigned pvankouteren Dec 18, 2012
@hansfn hansfn closed this as completed in 62bb149 Dec 18, 2012
@hansfn
Copy link
Contributor

hansfn commented Dec 18, 2012

Sorry, pvankouteren, didn't mean to step on your toes.

Short explanation: htmlspecialchars should not encode already encoded characters. (If "å" is written as &aring, it should leave it alone. It's of course better to never use HTML entities for such characters. It's not needed since Bolt is using UTF-8, but some editors insists on using them.) Anyway, setting double_encode to false in htmlspecialchars fixes this

@pvankouteren
Copy link
Contributor

That's no problem :) I'm just glad that it's solved! Onwards to Bolt 0.9 \o/

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

No branches or pull requests

3 participants