Copied to clipboard

Flag this post as spam?

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


  • Profiterole 232 posts 264 karma points
    Dec 22, 2011 @ 12:53
    Profiterole
    0

    French characters in url

    Hi,

    I've xsltsearch 3.0.4 and umbraco 4.7.1. Everything work well in Firefox and Chrome, but not in IE (8 and 9).

    So, when someone search for the french word "élève" all browsers show results with multiple pages. Good! But if I click next or page 2, on FF and Chrome the url looks like search.aspx?search=%E9l%E8ve&page=2 which "encode" character and it works and search page.

    But, in IE, when I click page 2, I get : search.aspx?search=élève&page=2 and it searches élève  in the page so it return no result.

    Am I doing something wrong? How can I correct that?

    Thank you!

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 22, 2011 @ 13:35
    Douglas Robar
    0

    As you say, this works in all browsers but IE and is an IE quirk rather than an XSLTsearch bug per se since it works properly in other browsers. Also, it isn't a widespread problem as XSLTsearch is used on lots of international sites with a host of different characters.

    It might be that you are not specifying utf-8 in your html document's head block? Or are using html rather than xhtml as your doctype in the template? I've heard that the encoding of the page makes a difference to IE in ways that other browsers handle automatically.

    Any chance you could share a link to the site so we can see the behaviour first hand?

    cheers,
    doug. 

  • Profiterole 232 posts 264 karma points
    Dec 22, 2011 @ 15:53
    Profiterole
    0

    Hi Doug, I agree that is not an xsltsearch problem but an IE one... But I had no idea where to ask help about my problem! My site is in iso-8859-1 instead of utf-8 and the doctype is html (as html5).


    So probably the problem comes from iso-8859-1 encoding.

    You can try the behaviour there :  http://www.alloprof.qc.ca/resultats-de-la-recherche.aspx

    Thank a lot for your help!

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 23, 2011 @ 14:44
    Douglas Robar
    0

    It might be worth changing to utf-8 since iso-8859-1 is only the major ascii characters and utf-8 shares the ascii portion so it should (*should*) be a transparent change and just might get the search working in IE. Worth a temporary test at least.

    Let us know what you find out.

    cheers,
    doug. 

  • Profiterole 232 posts 264 karma points
    Dec 23, 2011 @ 22:22
    Profiterole
    0

    Hi Doug!

    I tried with utf-8 and it works. However, some old mailing list program used by my site need iso-8859-1... So I guess I'll need to find a workaround!

    Thank you for your help!

Please Sign in or register to post replies

Write your reply to:

Draft