[SOLVED] Why might a copyright-symbol show up as a black diamond in one site but not its twin?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
However, a "copyright" symbol appears as a black-diamond in one site but not the other, in the same browser. In one, the character appears normally. In the other, black diamond.
curl of the page from both servers and diff and hexdump of the two files shows that the byte is the same.
The font is available in both cases and has been retrieved and stored by the browser in both cases. It is the same font.
I think the problem may be at web server level. Check to see what you have the server encoding set to (e.g. through its .htaccess files) and the content of the HTTP headers it returns.
Ooh... I surely hope that folks won't now overlook this thread, now that I marked it as [SOLVED] ...
... because right now I really don't quite understand just where this HTML Header is coming from. The server is a "stock Ubuntu-LTS," and the charset.conf configuration is not enabled.
So ... where-and-why is this server "proclaiming to all to whom these presents may come" that the content is "UTF-8?"
I don't really think that it is coming from this bit of php.ini:
Code:
; PHP's default character set is set to UTF-8.
; http://php.net/default-charset
default_charset = "UTF-8"
... but I really do need to know ...
- - - Edit: Based on the docs referenced in the file-snippet: "quite clearly, it is not ..."
So, where is it? Is it some sort of recent default? (Notice: the web-site is jumping from Apache 2.2 to 2.4.)
Last edited by sundialsvcs; 01-03-2017 at 06:37 PM.
As NevemTeve mentioned, check your .htaccess files for AddDefaultCharset (also AddCharset and AddType). Also, check httpd.conf. If you can't find anything, then set things yourself to serve iso-8859-1.
Given that you haven't yet worked out why the difference occurs, maybe you should remark the thread as "unsolved" in the meantime?
; By default, PHP will output a character encoding using
; the Content-type: header. To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://php.net/default-mimetype
default_mimetype = "text/html"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.