Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...search function in DNN does not index words containing Swedish characters (åäö)search function in DNN does not index words containing Swedish characters (åäö)
Previous
 
Next
New Post
11/2/2010 5:05 AM
 
Hello!

I work with a large number of DNN sites in Sweden and has found a problem that I now supposed to find the root of.

The problem is that the internal search function in DNN does not index words containing Swedish characters (åäö). For example, the word Nässjö can not be found.

Is there a setting you can do to include special characters?
 
New Post
3/17/2011 4:34 AM
 
Have you found a solution to this?
I have the same sort of problem. I did get so far as to see that the Swedish characters are getting indexed in the database.

You can test to see this by using the sql below in the host/sql.

select top 100 * from searchword

But the words do not come up in the search results :-(
 
New Post
3/18/2011 2:52 PM
 
This is a bug. Accented search term is encoded by HtmlEcode function (SearchResults.ascx.vb, line 292) and then searched in database. Unsuccessfully - of course. Without html encoding returns searching terms with accented characters expected results.
 
New Post
3/22/2011 4:35 AM
 
Any tips about how to get around this? It is a major problem for a Swedish site.
 
New Post
3/22/2011 8:27 AM
 

I found this thread incidentally and realized that this problem will affect my sites too. Therefore I looked at the code and found problematic location in file SearchResult.ascx.vb on line 292. The code on this line looks as follows:

_SearchQuery = 
HttpContext.Current.Server.HtmlEncode(objSecurity.InputFilter(Request.Params("Search").ToString, 
PortalSecurity.FilterFlag.NoScripting Or 
PortalSecurity.FilterFlag.NoMarkup))

I have no idea why should be input parameter string html encoded. The result is that accented characters are encoded, i.e. mangled. If you remove the HtmlEncode function call then the unchanged input search string can eventually be positively compared against the key from the data table. I tested this with dnn version 5.6.1

Regarding the tip: change of code is presumable the only way.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...search function in DNN does not index words containing Swedish characters (åäö)search function in DNN does not index words containing Swedish characters (åäö)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out