Paste hindi text from pdf to HTML/XML - html

I've a text as Bharat written in hindi in PDF.
I am creating a web page where in i need to display this as it is in my webpage. when trying to copy the content and paste it is getting rendered as some garbled text. I've installed the corresponding font and when seen in ms-word it is showing correct, can you please let me know how can i show/display it as it is.
I get the below when i paste it directly.
fpfdRlh;
Thanks

Make sure you save the files as using UTF-8 encoding. Also use UTF-8 as the webpage's charset in the head.
<meta charset="utf-8" />
EDIT: I just tried this and it works great for me. Could it be a browser issue?
Code I tried for reference:
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<h1>देवना</h1>
</body>
</html>
And a JsFiddle for you: http://jsfiddle.net/zuymyz00/

Related

How can I see how HTML that I write will look on the web?

I'm embarrassed to have to ask this, but I'm really new to HTML and web development.
All I want is a simple way to display the results of HTML that I write. That is, to see how my HTML will look on the web.
I can't seem to open an HTML file in my default browser: Chrome. I downloaded Microsoft Expression and can type in HTML code but can't find a way to display its results.
I'm not going to write much HTML so I'm looking for a quick, simple approach.
Go to https://jsfiddle.net/ to play around with html. It will provide you with warnings if your html is malformed.
Here's an answer to a question that you didn't ask, but is probably what you are looking for:
Create a new file, call it index.html and make sure that the extension is indeed .html. The extension could be something you don't want if you don't have this checkbox checked on windows.
Right click your file and open it in notepad, then paste this inside it:
<html lang="en">
<head>
<title>Simple Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1>It works!</h1>
<ul>
<li>Lists work too</li>
<li>Lists work three</li>
</ul>
</body>
</html>
Save the file (Ctrl + S or File > Save)
Open your browser (chrome or firefox), and drag the file over your tab bar, or right click the file, choose open with... and pick your browser.
You should now see the result of the HTML file.
In short, you should be able to open the HTML file in your browser. However, you may see nothing (blank) if your HTML is not correctly formatted.
Save your file with ‘.html’ extension. For example ‘index.html’. And then you can right on the file and select ‘open with’ and choose the browser that you want. Or else you can open your browser first. Then go to File menu -> Open -> Select index.html

Hyperlinks Only Link to Internal Site

I am just starting to code HTML and I am testing the following very simple code:
Google
However, it always thinks that the link between quotation marks is a file located locally in my website, so I end up getting an error page with the URL bar reading:
www.example.com/"http://www.google.com"
Obviously I am doing something silly, because this is really silly. How would I get my hyperlink to actually take me to Google (or whatever other website I wanted)?
EDIT: Since I have been told I shouldn't be getting an error and that I must not have specified something, here is my entire code:
<!DOCTYPE html>
<HTML>
<Head>
<title>My Website</title>
<meta charset="UTF-8">
<meta name="This is a website where I dump random stuff I am interested in.">
<Body>
<h1>My Website</h1>
<p>
<a href=www.google.com>Google</a>
</p>
</Body>
</Head>
</HTML>
In your full code, you are missing quote marks around the link. This isn't your problem though, you need to add https:// to the link for the browser to recognize it as an external link.
Google

Font error in html

My website has a font error, when I open the chrome developer tool, I see the image as attached.
My error text is hard-coded.
I added a meta tag utf-8 to the head tag.
I do not understand why it's buggy, while still having one of my pages using the same code does not get this error.
Help me
Thanks
First of all use in your head section:
<head>
<meta charset="utf-8">
</head>
Second: when you are saving your HTML files,
please try to use NOTEPAD before putting files on the server.
The reason for that is, you may use some editor that
converts your characters in a way that gives an error...

How to make Utf-8

I have set my coding on website using <meta charset="Utf-8"> I have it right written, so if there is a mistake, it is not in my website. Now.. It does not work. I think it is because of website coding is set by "windows-1208" or something like that. But I can not find out how to fix this, because is defined by my computer... any ideas?
<meta charset="Utf-8"> tells the browser to display the page in UTF-8. But if you used an other encoding in your editor (e.g. windows-1208 or so) and saved your html page in that encoding, the page won't be displayed correctly.
Make sure, you saved your file in the same encoding as you declared in the meta tag.
To fix it, open the html document in e.g. Notepad++, choose in the menu «Encoding» «Encode in UTF-8 without BOM»

UTF-8 unreadable in phonegap android

I'm working on my first phonegap application, an android based simple form app.
My problem is that all my non-latin characters appear unreadable.
I added the content meta tag with utf-8, made sure I saved the file as utf-8, made sure to use font with the needed letters and also added xml:lang to the decleration.
Couldn't find any other idea, because i'm a web dev and this usually solves these issues...
Maybe someone has any idea?
feels like my questions back when I just started web development :)
Thanks!
Just add meta:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
If you are using Eclipse, which is default for the PhoneGap Android, make sure you applied the utf-8 text file encoding. (Project - Properties - Resource: Text File Encoding - Other [UTF-8]).
The meta tag should also be in your index.html
<head>
<meta charset=utf-8>
...
</head>
sometime it happens from visual studio page Unicode setting: for this go to file > advance save options > select Unicode utf 8 with signature and then click ok.