Arabic language not displaying in Notepad - html

peace upon you
I have a problem with the language when I was in the notepad
An idea about the subject
I tried to put metadata utf-8
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
It doesn't show the arabic words, it shows question marks instead

Include the two tags inside your paragraph marker:
dir="rtl"
lang="ar"
رَبٍّ زِدْنٍي عِلمًا
<p dir="rtl" lang="ar" style="color:#e0e0e0;font-size:20px;">رَبٍّ زِدْنٍي عِلمًا</p>

Here the meta tag you can use if you are using notepad.
**<meta content="text/html; charset=utf-8" http-equiv=Content-Type>**
if you are using modern text editor like sublime you don't need to put that.

Related

Turkish character file name

I have a image on my website with that name.
Yaşar.png
But when I tried to use it in <img src="https://example.com/Yaşar.png"> tag, it looks broken.
use meta tag
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<img src="http://example.com/Yaşar.png">
If it doesn't work cross-check your image extension.

Turkish characters does not display correctly

i have the following code. it contain Turkish content. but i get the results including special charecter. so please give solution for that.
html code
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<META HTTP-EQUIV="content-language" CONTENT="TR" />
<title>test</title>
</head>
<body>
Tarihçe
</body>
</html>
i will get Tarih�e instaed of Tarihçe.
If you can use Turkish encoding below will be the meta tag
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
else code Tarihçe as
Tarihçe
Change the actual character encoding of the file to UTF-8, using whatever settings need to be used in the program you use to create and edit pages. The file is now in some 8-bit encoding, so the letter ç appears in the data as a byte that is not allowed in UTF-8; hence the � symbol (it indicates character-level data error).

html not showing content properly in firefox

I have an HTML file. When I open in the text editor it shows the below.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Srimad Bhagavatam Canto 4 Chapter 9 Verse 5</title>
<link rel="STYLESHEET" href="../../../om.css" type="text/css" title="om tat sat">
<meta http-equiv="Content-Type" content="text/html; Charset=ISO-8859-1">
<meta name="KEYWORDS" content="Srimad Bhagavatam">
<meta name="DESCRIPTION" content="Srimad Bhagavatam Canto 4 Chapter 9 Verse 5">
</head>
<body>
<p class="h">4.9.5</p>
<p class="c">sa vai tadaiva pratipāditāḿ giraḿ</p>
<p class="c">daivīḿ parijñāta-parātma-nirṇayaḥ</p>
<p class="c">taḿ bhakti-bhāvo 'bhyagṛṇād asatvaraḿ</p>
<p class="c">pariśrutoru-śravasaḿ dhruva-kṣitiḥ</p>
<p class="t">TRANSLATION</p>
<p>At that time Dhruva Mahārāja became perfectly aware of the Vedic conclusion and understood the Absolute Truth and His relationship with all living entities. In accordance with the line of devotional service to the Supreme Lord, whose fame is widespread,
Dhruva, who in the future would receive a planet which would never be annihilated, even during the time of dissolution, offered his deliberate and conclusive prayers.</p>
</body>
</html>
When i open this html file in firefox. the output is
4.9.5
sa vai tadaiva pratipÄditÄmÌ giramÌ
daivÄ«mÌ parijñÄta-parÄtma-nirnÌ£ayahÌ£
tamÌ bhakti-bhÄvo 'bhyagrÌ£nÌ£Äd asatvaramÌ
pariÅ›rutoru-Å›ravasamÌ dhruva-ksÌ£itihÌ£
TRANSLATION
At that time Dhruva MahÄrÄja became perfectly aware of the Vedic conclusion and understood the Absolute Truth and His relationship with all living entities. In accordance with the line of devotional service to the Supreme Lord, whose fame is widespread, Dhruva, who in the future would receive a planet which would never be annihilated, even during the time of dissolution, offered his deliberate and conclusive prayers.
I am not able to understand the problem, why its changing the diacratics and showing some wrong letters?
Please try changing
<meta http-equiv="Content-Type" content="text/html; Charset=ISO-8859-1">
to
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
ISO 8859-1 is a single-byte encoding that only includes the first 256 unicode characters.
#geedubb beat me to it, that is the solution. to expand, UTF-8 can represent every unicode character while as #geedbubb points out ISO 8859-1 is limited.
The simplest fix is to save the file, in your text editor, in UTF-8 encoding
with BOM. Any reasonable text editor has a command for this.
This will override any charset declaration in the document itself and even HTTP headers.
You can then remove the tag <meta http-equiv="Content-Type" content="text/html; Charset=ISO-8859-1"> as useless. If you wish to retain it for documentation purposes, you need tp change ISO-8859-1 to UTF-8, of course.
ISO-8859-1 is sufficient for Western and Northern European languages only (and not really even for them). For texts like those in your page (Devanagari text in scientific/academic transliteration), UTF-8 is the only character encoding that makes sense on web pages.

Cant see greek menu text and titles the paragraph greek text is alright

I have my website in english and now I want to make it in greek, but the greek text it wont show in the menu bar and titles but some symbols... though the paragraph greek text looks just fine.
I have
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Any idea what's wrong?
The HTML lang attribute can be used to declare the language of a Web page. This is meant to assist search engines and browsers.
According to the W3C recommendation you should declare the primary language for each Web page with the lang attribute inside the tag, like this:
ISO 639-1 Language Code of greek is el
<html lang="el">
...
</html>
In XHTML, the language is declared inside the tag as follows:
<html xmlns="http://www.w3.org/1999/xhtml" lang="el" xml:lang="el">
...
</html>
Some Greek characters are part of the Unicode character set, so you need to declare that in the head of your documents:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
you may check for special characters though this website

Why am I getting †character in plain HTML?

I have bound data to a repeater control in ab asp.net application. When the data is displayed in plain HTML text in the browser it comes with these characters: â€. I am unable to figure out the reason behind this.
What kind of html document type are you writing right now. If it's HTML 5, then check if you have <meta charset=utf8 /> under the <head> tag. If you are using <meta http-equiv="Content-Type" content="text/html; charset=utf8" /> under your <head> tag.
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
have you given this in your code?
http://ask-leo.com/why_do_i_get_odd_characters_instead_of_quotes_in_my_documents.html
Also look at the tables in the database to see what collation they are eg latin1_swedish_ci, utf8_general_ci
Use symbol " . Do not use ”
Correct example:
mozilla.com
Incorrect:
<a href=”http://www.mozilla.com”>mozilla.com</a>