Non-english characters showing as question-mark-diamonds on web pages

tamanrasset77

New Member
Messages
17
Reaction score
0
Points
1
You can see the problem here: https://sakhalianet.x10.mx/about/es/
This happens because the server is changing the non-english characters on the source code of my web pages for question-mark-diamonds. Should I use HTML entities on my webpages instead of writing the non-english characters as they are? I think this is very annoying and that it worked properly before the update on the server.
 

ctyrd

Active Member
Messages
960
Reaction score
81
Points
28
Check your phpinfo.php file. The update may have a default charset of UTF-8 and webpage is set to "
Code:
<meta charset="ISO-8859-1">
".

This js is also throwing me off. "UA-90540236-1"

Code:
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-90540236-1', 'auto');
  ga('send', 'pageview');
</script>
 

spacresx

Community Advocate
Community Support
Messages
2,203
Reaction score
196
Points
63
x10 hosting does not provide script support,
this includes language scripts.

if other users can provide help they may try to help you.
but this is not a x10hosting service issue.
 

tamanrasset77

New Member
Messages
17
Reaction score
0
Points
1
but this is not a x10hosting service issue
Let me doubt it when I see that the server is modifying the source code of my web pages... If I have to replace the "special" characters (characters with accents and opening question/exclamation marks) by HTML entities then I will feel like hitting my head against a rock...
 

ctyrd

Active Member
Messages
960
Reaction score
81
Points
28
I have no idea on how to do that...
I have tried changing the charset to UTF-8 and it is useless...
Create a file named phpinfo.php in /public_html and add

Code:
<?php
phpinfo();
?>

I have to say that in English characters are fine, I use to see those marks when I copied/paste from MS Word document to a different editor. Something may have changed during update, hopefully updating your cms or the plugin for es language may correct the docs. Maybe a database rebuild.

You could do a quick test, create a html doc with a short paragraph of Spanish and upload or use the DA file manager. What ever happen the damage is already done hopefully it can be figured out with minimal editing.
 

tamanrasset77

New Member
Messages
17
Reaction score
0
Points
1
Create a file named phpinfo.php in /public_html and add
I did it and finally I saw that UTF-8 is the default charset. However, I do not get a solution for this with just looking at this. I do not think that this is the problem, because if I print a text from a database "foreign" characters will be displayed as they should. The problem comes from the fact that the server is replacing the "foreign" characters in the source code of webpages by "diamonds" for no reason. I have never seen this before, nor in this server years ago.
 

ctyrd

Active Member
Messages
960
Reaction score
81
Points
28
I do not think that this is the problem,
On the es documents fix the start of the html source code with:
Code:
<!DOCTYPE html>
<html lang="es">
<head>

The if statements are not working as intended.
Code:
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="es"> <!--<![endif]-->
<head>

English Docs source code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
      <head>

Is there a link to an es font in the head tag?
Code:
<link rel="stylesheet" href="plugins/font-awesome/css/font-awesome.css">
 
Last edited:

tamanrasset77

New Member
Messages
17
Reaction score
0
Points
1
Fellow members, I think that we have a server-side problem here. Please, look at this screenshot: https://prnt.sc/FnQoLk-reRJE

You can see the "diamonds" in words "Consultoría", "Análisis" and "Diseño"... I am uploading through FTP a source code that is perfectly legible but the server is turning it into what you can see in the screenshot. I need someone that is in charge of the configuration of the server to do something about it or else, in the case that I could do it, to explain to me how to do it .
 

ctyrd

Active Member
Messages
960
Reaction score
81
Points
28

tamanrasset77

New Member
Messages
17
Reaction score
0
Points
1
I navigate to https://sakhalianet.x10.mx/ and no error due to a character "encoding".
No error because that part of the website is written in English.

I just got that there is a problem with my usual HTML editor which prevents to save the documents with the appropriate encoding. After having used a different program to encode the documents I got them working well in the server, but in this case the buggy HTML editor will not display the special characters properly in its workspace anymore .
 

ctyrd

Active Member
Messages
960
Reaction score
81
Points
28
I just got that there is a problem with my usual HTML editor which prevents to save the documents with the appropriate encoding.
The needs of the many is greater then the needs of the one.
I use to see those marks when I copied/paste from MS Word document to a different editor.
Proprietary encoding verses diversity is a free market anomaly.
 
Top