You're searching for 'å' but most likely the garbage character isn't 'å' but instead transformed to something else in the current character set. So you have to determine what each garbage character is (WireShark is good to see the actual byte values being transmitted), then replace it back to the appropriate character. If the final page is in UTF-8, then any illegal character will be transformed into a special UTF-8 character. You will not be able to reverse it in that case as you could have dozens of illegal characters and they're all now the UTF-8 invalid character.
- Bil neXib wrote on 10/15/2008 2:16 AM: > Nobody have a clue? Tell me if I need to clarify. > > On Oct 14, 10:47 am, neXib <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I've got a xml feed that I'm getting from an external url, it's in >> utf-8 format and loads fine (looks perfect if I just copy it into the >> local xml file). But the problem is that our way of getting this xml >> file which is something the company have coded earlier (old now) seems >> to encode it as something other than utf-8. So when I output the data >> special characters like our æøå (å and such) turns into garble. >> I can probably get this code of ours changed internally, but in the >> meantime it would be nice if I could replace these characters with >> jquery. I tried a jquery like below but nothing like å or hex >> values or anything shows the right character. Ideas? >> >> var $thirdLink = $(this).find('h5.media'); >> var linkText = >> $thirdLink.text().replace('å','å'); >> $thirdLink.text(linkText); >