J3 Issue ?
avatar SniperSister
SniperSister
5 Feb 2017

Steps to reproduce the issue

Create a new article with the following HTML markup:

This is a test sentence with an HTML äntity

ä is a HTML entity that is used in the german language to encode the Umlaut ä

After creating the article, go ahead and create a menu item for com_search and run a search for äntity in the frontend.

Expected result

The created article is supposed to be found by com_search.

Actual result

The article isn't found because the input in the search module (äntity) doesn't match the value in the database table (äntity)

Additional comments

I'm aware that this is an edge case and can easily be worked around by disabling the conversion of Umlauts to entities (i.e. JCE has an option for this that switch to off by default anyway), so I'm not sure if this should be covered by the CMS at all.

avatar SniperSister SniperSister - open - 5 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 5 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Feb 2017
avatar ot2sen
ot2sen - comment - 5 Feb 2017

Have seen this specific to the Microsoft Edge browser too. Danish special characters æ ø å Æ Ø Å do not return a search result in Edge, but do in IE11, Chrome, FF, etc.
For example Šbecome å when having hit search button and no result is then returned.

05-02-2017_ae_oe_aa_danish_chars_edgebrowser

avatar ot2sen
ot2sen - comment - 5 Feb 2017

Can see my follow up wasn´t exactly same as reported case.
Didn´t enter entity code to present the special character. Have keyboard support for those extended characters. But still, it is an issue in Edge and also reported by other Danish users.

avatar SniperSister
SniperSister - comment - 5 Feb 2017

@ot2sen can you open a separate issue for your report? Don't think they are connected to each other.

avatar infograf768
infograf768 - comment - 7 Feb 2017

@SniperSister
Do you mean that you enter in the textarea
äentity instead of äentity
?

avatar SniperSister
SniperSister - comment - 7 Feb 2017

I enter äntity into the article body with disabled WYSIWYG editor. This gets converted into äntity on display by the web browser.

avatar infograf768
infograf768 - comment - 7 Feb 2017

Please use the special sign before and after what you enter exactly as ä is transformed to ä here.

avatar infograf768
infograf768 - comment - 7 Feb 2017

I mean
screen shot 2017-02-07 at 09 26 21

avatar infograf768
infograf768 - comment - 7 Feb 2017

Forget it. I thought is would be easy by using $text = htmlentities($text, ENT_NOQUOTES, 'UTF-8');
It would work in your special case, but it would break when a text is saved as pure UTF8 (without htmlentities), which is the normal way to do in J!

avatar SniperSister SniperSister - edited - 7 Feb 2017
avatar SniperSister SniperSister - change - 7 Feb 2017
The description was changed
avatar SniperSister SniperSister - edited - 7 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 7 Feb 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Feb 2017
avatar SniperSister
SniperSister - comment - 7 Feb 2017

Sorry folks, I just realized that Github converted my ä automatically because I didn't escape, updated my description to make it more clear

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category com_search
avatar joomla-cms-bot joomla-cms-bot - change - 30 Mar 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 30 Mar 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status New Confirmed
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Nov 2017
Status Confirmed Discussion
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman brianteeman - change - 18 Aug 2018
The description was changed
avatar brianteeman brianteeman - edited - 18 Aug 2018
avatar brianteeman brianteeman - change - 18 Aug 2018
The description was changed
avatar brianteeman brianteeman - edited - 18 Aug 2018
avatar brianteeman brianteeman - change - 18 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 15:09:32
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 18 Aug 2018

As you have stated that its an edge case (lol I thought you meant the browser) and it's been sat here for 18 months I am going to close it

avatar brianteeman brianteeman - close - 18 Aug 2018

Add a Comment

Login with GitHub to post a comment