Getting text glitch? [closed] - text

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
anyone have any idea why im getting this text formate glitch getting this china text
"Home 鈫�"
http://news.filmground.host-ed.me/ scroll down!

This is your first charset declared:
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
Wikipedia says GB18030 is
a Chinese government standard describing the required language and character support necessary for software in China
Try using UTF-8 instead. You have both declared (look at the top of your head element). Try removing the one above or change to:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

You are using the Chinese standard encoding set:
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
Try setting it to UTF-8
<meta charset="UTF-8">

Related

Is it better for the robots to find html pages that do redirection or should I just use htaccess?

I want some of the pages to be redirected back to the main page as 'params'. These are not data or privacy sensitive, so I dont need to use the "session" variable.
I was thinking that it would be better for the robots to find physical html files. So for example, I have example.kiwi/downloads.html containing
<meta http-equiv=="refresh" content="0; url=https://example.kiwi?mode=downloads" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script>window.location.href = "https://example.kiwi?mode=downloads"</script>
I assume that I can do the same with htaccess. Is that better and how do I do it. Being a sensitive file, I am trying not to experiment a lot with it.

How to do SEO for a school web site [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to know, How to do SEO for a school, I have no idea about SEO and
I have not enough time to spend more time because it is all ready late for submitting the project. so i just plane to get some idea to do SEO with meta tags so, can any one tel me how to do that.
I have used these tags
<link rel="canonical" href="http://madinacc.sch.lk/" />
<meta name="robots" content="index, follow">
<meta property="og:type" content="website" />
<meta property="og:title" content="Madina Central College (National School) Madawala Official Website" />
<meta property="og:url" content="http://madinacc.sch.lk/" />
<meta property="og:site_name" content="Madina Central College (National School)Madawala Official Website" />
<meta property="og:image" content="http://madinacc.sch.lk/" />
<meta name="twitter:site" content="#jetpack" />
<meta name="twitter:image" content="http://madinacc.sch.lk/" />
There have been millions of books written on this, so a quick solution is unlikely but here are my thoughts.
Whilst I am sure there are lots of things you could do and tags you could add to the <head> tag, I am under the impression that nowadays the algorithms of Google, among other modern search engines, are intelligent enough to rate your site properly, based on the ACTUAL content of your site.
Given this, my advice would be to include the well-written content that your site NEEDS.
If you do this, your site will be ranked properly in due course.
The good thing is that much of modern SEO involves improving the site for your users. Such as:
Having good, relevant content
Having a fast, well performing site
Having content that updates frequently. I.e even just a blog or similar
Properly labelling images (title, alt-text)
Ensuring that all the links on your page are correct! (Obvious but often overlooked)
There are a million others but they are the ones that spring to mind.

how to send an alert message with Turkish characters

I am programming a Web-Application with Java EE and JSF.
I want to give alert (javascript) messages with Turkish characters (such as Ç,ü and ö etc.) on my app. But, after alert function is fired, I see the alert message with unrelated characters such as <?>, instead of Turkish characters on .xhtml pages on any browser (I tried it on IE10 and Chrome).
I need an advice to handle the problem. If I find a solution, I can also use this to set values of element (ex./h:commandButton) by javascript.
EDIT:
Additional information - Static strings that includes Turkish letters on html or jsf tags are shown properly. However, when I change them via some javascript functions, if there is any Turkish characters in strings that are changed, these Turkish letters cannot be shown properly.
It is too old question but I want to answer for maybe someone need.
If your problem with alert messages, open your javascript file on notepad and save as with Utf-8 options.
Or you can use same technic for others js file you need encoding char.
If its just specific to chrome may be you could try changing the page encoding.
Got Control->Tools->Encoding and change that to Auto Detect or Unicode or turkish etc..
If its a general issue then add the meta info
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">
<META HTTP-EQUIV="Content-language" CONTENT="tr">
or
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
<META HTTP-EQUIV="Content-language" CONTENT="tr">
Example
<!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">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">
<META HTTP-EQUIV="Content-language" CONTENT="tr">
<title>Sample</title>
<script>
function alertText() {
alert(document.getElementById("turkish").innerHTML);
}
</script>
</head>
<body>
<div id="turkish">Türkçe olarak hellow dünya</div>
<input type="Button" onclick="alertText()" value="Say" />
</body>
</html>

I use visual studio 2012 in windows 8 ASP design view shows Square for unicode characters

I really need help for this because when I write my code in source view, I have no problem but when I view it in design view it shows square instead of farsi characters.
how can I solve this problem?
There is no problem here:
make sure you have saved the final file with utf-8 with signature (file menu-> advanced save options)
add <meta charset="utf-8" /> to the head of the html page or your master page.
also you need these meta tags too: <meta http-equiv="Content-Language" content="fa" /> and <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

french chraracters in browsers

What is the solution to correctly display french characters in all browsers? now i get in some browsers this: (pr�sent�s)
Thanks.
One solution is to learn how to use Unicode.
The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
Try UTF-8 encoding on all your pages and encoding all your strings to UTF-8.
You should specify a content type for the page, and specify what encoding you use for creating the page. Example:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
You need to select a character encoding for your page. In your editor, save to that encoding, and specify in the HTML <head> section:
<meta http-equiv="Content-Type" content="text/html; charset=The_Chosen_Encoding" />
Suitable encodings for French include ISO-8859-1 (aka Latin-1) and UTF-8.
Alternatively, you may stick to plain ASCII and use HTML entities for the accentuated letters, such as:
é for é
è for è
etc.
Just use this in you html
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
and if you're using php additionally this in your php-script
header ('Content-type: text/html; charset=utf-8');

Resources