Strange signs in browsers other then IE Strange signs in browsers other then IE
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Strange signs in browsers other then IE

Started by mikekiwi, November 06, 2004, 06:48:27 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mikekiwi

HI,

I just got some comments from visitors to my website that there are a few strange signs which can be seen in upper left corner of my website. This what they see: ï"¿. I'm using Internet Explorer and don't see them, but when I switch to Opera or Firefox, I can see them as well.

This is how it look like:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fmembers.lycos.nl%2Fmichaelkiewiet%2FCM_signs.gif&hash=4dac39bfa72f11bf10150903ca7a65b242c32068)

Any idea where they come from and in what file I can find (and delete) them?

Thanks and kind regards,
Michael

Tranz

To make it easier for those trying to replicate the problem, here's the link: http://www.misy.nl/fotografie/thumbnails.php?album=lastup&cat=0

I see the characters in FF, too.

Joachim Müller

This is usually caused if you touch the language files with an editor you're not suppossed to touch them with - make sure you haven't edited any of your coppermine files using a wysiwyg editor like Dreamweaver or MS Frontpage. If you did: get a fresh copy of the files and overwrite the ones on the server. If you're not sure what file to edit/replace, use the search function of your operating system, searching for files "*.php" containing the string "ï"¿<php" (without the quotes of course).

Joachim

mikekiwi

Well, Joachim, I've finally foudn some time to search through all files for those signs. And I didn't found them.... :-[

I've used the search-function in XP to search for those signs in all files but no results. I've changed the language file to be used to an original version and that didn't help either.

So, what next?


Casper

These are at the very start of the utf-8 language files, and 1 or 2 other files.  They cannot be seen by some editors, including notepad.

Try changing from the utf-8 to the iso language file, and change your config encoding setting to default language file
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

mikekiwi

Quote from: Casper on November 28, 2004, 04:32:09 PM
These are at the very start of the utf-8 language files, and 1 or 2 other files.  They cannot be seen by some editors, including notepad.

Try changing from the utf-8 to the iso language file, and change your config encoding setting to default language file

I thionk I've already done both, Casper.... Language setting is back to the non-UTF-setting and encoding is default and I still see it....

Casper

Your source code is showing you still have utf-8 as the language file.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

mikekiwi

Do you believe me if I tell you that if I change it to Dutch and confirm it by saving the new configuration, that when I then return to the setting it still (or again) says Dutch-UTF-8 as language file???
That's why I said I changed it, I did, but the it changes again to the UTF-setting.... ???

chtito

You have to be smart in order to locate these weird signs using a search function. You have to be sure that you're searching exactly for the following data (in hex): "FFBBBF". For instance, this data does not represent any utf-8 encoded string.

Anyway, apparently all the utf-8 language files are "contaminated" by these three bytes of data (aka BOM).

There might be a quick fix, though: pick a good text editor. Open the incriminated utf-8 file, in utf-8 encoding, of course. Make a minor change to the file: add a space or something. Save the file in text format, utf-8 encoding as well.

Most likely, your editor has stripped off the unwanted data at the beginning of the file, since its usage is not recommended.

I will take care of repairing these utf-8 languages files as soon as i can.

cheers!
Vous pouvez poser vos questions en français sur le forum francophone !

mikekiwi

Thanks for your suggestion; I tried to do what you recommend in UltraEdit (which I use a lot and I think of it as a good text-editor), but unfortunately no result. I've overwritten the language -files on my server with those that were in the download-package, but that didn't change the thing either.
Does this mean that I can see it on everybody's Coppermine-site with -for instance- Opera? Or is it just me... :\'(

Of course, there are more important problems and the majority of the users is using IE, instead of Mozilla or opera, but I got some comments on this and I just want to fix it...


chtito

He he, i'm sorry, my idea was not very clever.  ;D

Just open the utf-8 file as a latin1 file; remove the first three character (ï"¿); save the file as utf-8. That should work...

Good luck!
Vous pouvez poser vos questions en français sur le forum francophone !

mikekiwi

Done!!!

It took me a while to fin a good Editor which good to the trick, but I've managed to do so...

It is still not ideal as I now got my old problem back (http://forum.coppermine-gallery.net/index.php?topic=10563.0). I solved it by removing all accent signs (é, ë, ï, etc.), but that's more a workaround then a solution, imho.

Thanks for your help!

chtito

Right! Dutch is one of the many broken utf-8 language files (although i haden't noticed at first sight, because dutch doesn't seem to have many diacritics).

I uploaded the corrected utf-8 dutch file.

Hope that everything will be back to normal!

cheers!
Vous pouvez poser vos questions en français sur le forum francophone !