Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MRavensholt 19 posts 39 karma points
    Mar 14, 2011 @ 12:22
    MRavensholt
    0

    XSLTsearch and danish characters

    I've implemented xslt search on a danish website.

    One of the specific pages contains the danish word "dækskift" , but when I search for the term, it doesn't show up in the results. When I search for the word "dæk" , I get results from pages where the "dæk" is part of the word "sygdomsdækning". I've already double checked that the field containing the word "dækskift" is "indexed" by xslt-search.

    Has anyone experienced this problem before, and how did you solve it?

     

    I've tried to add the following:

    codes.Add("Æ", (char)198);
    codes.Add("æ", (char)230);
                 
    codes.Add("Å", (char)197);
    codes.Add("å", (char)229);

    codes.Add("Ø", (char)216);
    codes.Add("ø", (char)248);

    in the XSLTsearch.cs file in the escapeString and unescapeString methods. This didn't solve the problem either.

     

    /Martin

     

  • Douglas Robar 3570 posts 4671 karma points MVP 6x admin c-trib
    Mar 14, 2011 @ 12:28
    Douglas Robar
    0

    Can you browse to the page with "dækskift" in your browser and then look at the browser's 'View Page Source' -- are any of the characters escaped or is there anything at all unusual about how the word is shown in the source? That is usually the issue in such cases.

    cheers,
    doug.

     

  • MRavensholt 19 posts 39 karma points
    Mar 16, 2011 @ 08:45
    MRavensholt
    0

    Hi Douglas,

    I've already checked for that. The danish characters aren't escaped or in any other way "encrypted". I can send you the URL to the site, but not here since it's an internal-corporate website, and we don't want google to index the site if I post the URL here.

     

    cheers,
    Martin.

  • Douglas Robar 3570 posts 4671 karma points MVP 6x admin c-trib
    Mar 16, 2011 @ 10:16
    Douglas Robar
    0

    Hi, Martin,

    Can you send me a note with the URL through my website? http://www.percipientstudios.com/about/contact.aspx

    Perhaps I will be able to see something. 

    cheers,
    doug.

  • janjhnsn 7 posts 29 karma points
    Aug 05, 2011 @ 09:55
    janjhnsn
    0

    This issue has been fixed. The reason "dækskift" wasn't showing was that the node which it was displayed on was hidden from the menu and if nodes were hidden from the menus it was excluded from the XSLTsearch with the 'possibleNodes' variable.

Please Sign in or register to post replies

Write your reply to:

Draft