jQuery mobile utf-8 encoding not working - jquery-mobile

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" />

Related

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

Render HTML file with CSS and local variables

I have the following content in an HTML file placed under public/company/ with a CSS file css/style.css:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
</head>
<body>
<div class="title">Name {name}</div>
</body>
</html>
I want to render this HTML file with the CSS stylesheet from an action and replace {name} without changing the physical file content and place. I can render the HTML file but the CSS file would not be found. Can anyone help me render the HTML file with the CSS file and replace the {name}?
css/style.css when called from company/file.html will try to load company/css/style.css.
Click here to see an article the way you can do that. Hope it will help!
But, I'm not sure why you are looking to render that way where Rails has all the features in place.
If your CSS file is located at /public/company/css/style.css, then your static HTML file should link it with an absolute path. Use a leading / in the resource's path indicate an absolute path.:
<link href="/company/css/style.css" rel="stylesheet" type="text/css" media="all"/>
Note that the Rails router will likely catch this request and raise an exception. Depending on the web server, you may need to enable static assets or serve directly, bypassing Rails altogether.
Changing the content of a static HTML file server-side without actually modifying it (ie. adding ERb) isn't straightforward. You could:
inject some javascript into the response to perform modifications client-side. (ugly)
load the static HTML file using Nokogiri, et. al., modify the content, and send the output to the client. (expensive)
Sounds to me like these vanilla HTML/CSS files are third party (designer? client?) and you would like to drop it in /public and have it work automatically with Rails. That would be nice, but it's not that easy. You'd be better off using Rails' built-in templating system, but that means modifying files and moving them to the expected locations.

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.

Webpage won't show certain characters

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" />

sIFR double titles?

I used the latest sIFR version, and for some reason it shows the title double. I've experienced this problem on 2 pages now.
I uploaded an example here:
http://www.romenov.com/fairflex/form.html
and for some reason, the problem does not occur on page.html
Any clues?
Possibly because you don't have the sIFR stylesheet included in the form.html.
<link rel="stylesheet" href="sifr.css" type="text/css">
:)

Resources