Problem with special characters

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
smejko
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Apr 28, 2016 12:41 pm

Problem with special characters

Post by smejko » Thu Apr 28, 2016 12:51 pm

Hi,

we are developing a calendar extension, which consists of a component and module. While all characters display perfectly in the module, some special characters in a component are causing problems. For example, the component doesn't display characters Š (instead it displays Š ) and " (instead it displays &" ). Do you have any idea, what could be the problem? Probably it must be something quite small and obvious, but we are at to moment so into the thing, that we have obviously overlooked something.

Thanks in advance for your ideas!

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1545
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Problem with special characters

Post by H13 » Thu Apr 28, 2016 3:38 pm

Hi, this means, the characters are displayed in html special entities. Mostly browser transform them to normal text, e.g.:

Š --> Š

Check if your output is set in html (not e.g. in other part like javscript, etc.) Check if the extension does not somehow change the output, try to find this function inside the extension: htmlentities()

Check if your output is in UTF-8 :idea:

Jan
- Phoca Cart - Joomla eCommerce App - https://www.phoca.cz/phocacart
- Phoca Gallery - powerful image gallery
- Phoca Restaurant Menu - https://www.phoca.cz/phocamenu
- Phoca Download - download manager for Joomla

smejko
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Apr 28, 2016 12:41 pm

Re: Problem with special characters

Post by smejko » Thu Apr 28, 2016 6:33 pm

Thanks a lot for idea!
Indeed we had a htmlentities() function in our component. We have replaced it with a html_entity_decode() and it seems to be working as intended now.

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1545
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: Problem with special characters

Post by H13 » Thu Apr 28, 2016 6:55 pm

Ok
- Phoca Cart - Joomla eCommerce App - https://www.phoca.cz/phocacart
- Phoca Gallery - powerful image gallery
- Phoca Restaurant Menu - https://www.phoca.cz/phocamenu
- Phoca Download - download manager for Joomla


Locked

Return to “Joomla! 3.x Coding”