We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14778
    • 13 Posts
    Alright, I realize that there have been a few threads about similar problems, but I’ve been reading through them and none of them make much sense to me, nor do their "solutions" seem to be working.

    I have set up a site, using AJAX Search for the first time. Site is running 1.0.2 EVO. I use various HTML Entities within the site, mainly the one for &’s. My character set is UTF-8, (which is what’s recommended for this snippet I believe?). Anyway, throughout the AJAX search, I’m getting a really strange character (a ’y’ with an accent over it, which I discovered is unicode character 153).

    I have the site set up for you to look at: http://dev.pehsc.org/. A good search to do is "EMS". Most of these characters appear in the search results, but only one on the homepage. Also, from what I can tell Firefox is one of the only browsers displaying this strange character, I’ve looked at both Safari and Opera and they seem to be fine.

    I’m a front-end developer with VERY limited PHP knowledge, so keeping things as simple as possible would be greatly appreciated. Thanks!
      • 8609
      • 607 Posts
      maybe you fixed it? I don’t see any strange characters, I searched for both "EMS" and "municipality". I’m using Firefox 3.5.6.

      Try clearing your browser cache as well as your MODx cache and then reload the page.

      Is anyone else seeing the characters?

      Nice website by the way!
        • 14778
        • 13 Posts
        Alright looked into this a little further, the issue is still happening for me, but not my coworker. I am on an iMac, I didn’t think that would make much of a difference but maybe that’s the issue?

        Here’s some more information about what I’m running

        Operating System: OSX 10.4 Tiger
        Firefox: v.3.5.6
        Installed Firefox Addons: Firebug, Firequery, Page Validator, Total Validator, Web Developer

        I’m going to run this through BrowserShots and see if it’s a mac-only problem.
          • 14778
          • 13 Posts
          After some testing on other Macs, the problem seems to exist on my computer only. Strange. Thank you for looking into this though.
            • 26931
            • 2,314 Posts
            Installed Firefox Addons: Firebug, Firequery, Page Validator, Total Validator, Web Developer
            maybe some of these addons interfere somehow?
              • 5811
              • 1,717 Posts
              @joshlasdin

              Have you solve your problem ? On your site you don’t use the ajax mode, have you changed ?

              [EDIT: apologize, I have understood that you used the ajax mode. Ok, seems to be solved.]
                • 15155
                • 11 Posts
                Hi joshlasdin,

                Did you every resolve the problem with the funny character showing up? Because I am having the same issue. I don’t see it when viewing with my computer, but on another computer it does appear. Please let me know if you have fixed it.

                Cheers!

                Or has anyone else found a solution? I have a attached a screenshot of what is happening.
                  • 5811
                  • 1,717 Posts
                  If the Charset of your site is UTF-8, could you check that the ajaxSearch/templates/layout.tpl.html have been saved with an UTF-8 encoding and don’t content any weird characters.

                  Check the paging.tpl.html too. These weird characters seem come from these 2 templates.
                    • 15155
                    • 11 Posts
                    Thank you! I actually solved the problem by pasting the code into a text editor and saving it back out as plain text. Apparently funny things happen with the encoding when I open the files up in DreamWeaver and save them out.

                    Cheers! smiley
                      • 25317
                      • 122 Posts
                      Copying the contents of ’ajaxResult.tpl.html’ and ’ajaxResults.tpl.html’ into Notepad and resaving fixed it for me.