July 1, 2011 at 1:13 pm #13898
For some older websites I have to put the copyright sign (©) into the comments of some websites. So when a visitor views the source they’ll see a copyright notice.
All the websites have been built for Internet Explorer and most of them works best in quirks mode. Sometimes when I upload the copyright file to the server it shows: Â©. Other times I just shows the copyright sign.
First I thought it was because of the charset used on the websites but they are all the same and on some websites the copyright sign show correctly. Then I thought it’s because of quirks mode but it also doesn’t show correctly in the other modes.
I have tested this in google chrome. It shows the sign incorrectly. I also tried to put the copyright notice in PHP comments but that also didn’t work.
I’m running out of ideas so does someone know why the copyright sign shows like that (Â©)?
Thank you for reading my message.
AlvinaJuly 1, 2011 at 8:14 pm #14677
There’s so much overlap in character encoding that they never cease to confuse me. By chance are you using ISO-8859-1? Try switching to UTF-8, as the © symbol is a two-byte character. How it’s encoded also depends on the format used when saving the file.July 2, 2011 at 4:59 am #14678
Have you tried using &_copy_; (take out the underscores) ? If you’re using UTF8 encoding, that’s your best bet IMO.
Oh, you mean the source code? Hm…. that’s probably because you’re saving the file’s format in UTF-8. Try for ISO-8859-1. Careful though, if you’re trying to save a file originally written in a one format, with another format you may get mangled characters. So check before uploading online.July 4, 2011 at 11:39 am #14679
@amphigory doesn’t matter what charset I use it’s doesn’t show the copyright sign correctly. Weird thing is though that sometimes it does show it correctly.
@Vera &_copy_; doesn’t work in the source code cause then it just shows that instead of the copyright sign.
How can I see how I save my file as? I use notepad++ to edit my files and GlobalScape CuteFTP to upload my files.
Both thanks for replying.July 4, 2011 at 1:40 pm #14680
In Notepad++, on the top bar, you have an Encoding menu item. The current encoding should be selected. You can choose “Convert to ANSI” then, and insert the copyright symbol after you’ve converted it. And then save the file.July 4, 2011 at 2:31 pm #14681
You must be logged in to reply to this topic.