Webpage won't show certain characters - character-encoding

I'm noticing that in places where our site uses special characters on a webpage, such as ¡ or ¿ or even "special quotes" (like MS-word) it displays this funky � character
Is there something I can to do fix this? Is this a charset thing?
I know I could use html entities, such as
¡
But, I wanted to see if there was something else to address this since I notice some other sites don't need to use the special code.
Thanks

did you try to use the following meta tag?
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

Related

Unwanted characters in cached pages - Rails 5

I'm exploring the Rails caching in order to speedup the page loading of a website that is becoming very big passing the time.
Said this i'am done the simple steps to enable caching on my pages and it works very well.
Using caches_page :page_name
I have only one issue - I find a lot of unwanted characters in my page, it is regarding letters like "à" or " ' ", " ° ".
E.g. : instead of "'" i got "’"
this is related both for text inside the database and static text in the page.
What should be the cause of this wrong font rendering?
My fonts are included in the fonts directory and work very well in the non cached pages - they are google fonts (Roboto and RobotoCondensed).
I'm using heroku for production and I don't know if I have to change some production environment configuration to manage this.
I got no errors in console and no other messages.
SOLVED!
there was a missing line in my of the html layout file:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
this set the correct character encode on all the pages

Rails is killing special charcters

Something inside rails is preventing the the files to be served in utf-8.
Did they add some new config for utf-8? I'm running rvm ruby 2 and rails 4
This looks like a missing header or something that would be telling your browser that the text is in UTF-8. Your HTML page should contain something like
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
or
<meta charset="UTF-8">
assuming it is HTML.
I used to put that on the first line:
#encoding: utf-8

jQuery mobile utf-8 encoding not working

Basically what is happeing to me is that a text like "Ubicación" (spanish) is showing as "Ubicaciyn" same problem for every text with '
I am using this <meta charset="utf-8"> and I opened the file on note++ and save it as encoding in UTF-8.
If I take out the jquerymobile.js the problem is gone.
UPDATE
When I remove the jquery mobile stylesheet the problem is gone.. someone knows why?
FIXED
I fixed the problem, is a rare behaviour, what i had to do was to delete the all font-family properties from the default jquery mobile css. I dont know why but that fixed the problem, then I added a new css after that one with my specific font-familt and it worked!
Please try with complete meta tag for utf-8 encoding.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

character set encoding issue with multi-language featured site

I am here suffering from a simple, common problem.
my site is multi-language featured, built in codeigniter framework.
for eg for a french language here i have used
$lang['login'] = 'ConnÈcter';
this then appeared as Conn�cter in the view.
then i solved this by adding
<meta charset="ISO-8859-1">
which then resolved the issue.
but when the contents is loaded with characters like
Sáenz-Mata & Jiménez-Bremont
then is is changed to
Sáenz-Mata & Jiménez-Bremont
note é is changed to é even when i use
<meta charset="ISO-8859-1">
when above meta is removed, it gives me Conn�cter when the language is converted to french.
so please suggest me something which can handle both situations.
hope somebody understands it.(got messed up describing.)
thanks.
use <meta charset="utf-8">
Use UTF-8 consistently for all pages, as explained in the CodeIgniter User guide. Make sure the encoding of each file matches its declared encoding. What you are experiencing now is caused by mixing encodings (UTF-8 and ISO-8859-1 mostly).

ASP MVC 3, UTF-8 HTML charset not showing Polish chars. (Razor)

As title says. Story is, I've changed meta mark-up of my _Layout.cshtml page from:
<meta charset="utf-8" />
to
<meta content="text/html; charset=utf-8">
Effect? No Polish characters on page. Ok, let's revert the change. Effect? No Polish characters on page.
Btw it affects ONLY _Layout.cshtml, all other views show Polish letters properly. Proper letters are replaced by "Ĺ‚" characters.
Any ideas? Thought about changing browser, but it didn't work. Same stuff happens on different computer.
No other changes were made. Tried to revert project to older version from repository, didn't work.
Opened in notebook and saved again wit UTF-8 encoding set. Worked.

Resources