HTML - How To Resolve Non English Character In Html, Img Path
Similar TutorialsHi all, First time here. May be this is easy for all but I am writing this after experiencing a lot of frustration trying to write a very simple html file that uses regional font. I am on windows-xp. A font called Mangal which comes with the o/s itself is in question. All I want to do is show some text in this font (which is an Indian font, basically) on the browser. Here is my html : HTML Code: <html> <head> </head> <body> <font face="Mangal">Hello There...</font> </html> I opened this html in firefox and IE and in both the text appeared in English and not in Hindi; which it is expected to be in. I changed the char set to UTF-8 (in both) and tried but didn't work. After doing several google searches I discovered I need something called as eot file. So I downloaded the s/w WEFT from MS and installed and created eot file as described in online tutorials. The s/w did change my above file to : HTML Code: <html> <head> <STYLE TYPE="text/css">^M <!-- /* $WEFT -- Created by: prasi () on 8/7/2009 -- */^ @font-face {^M font-family: Times New Roman;^M font-style: normal;^M font-weight: normal;^M src: url(TIMESNE0.eot);^M }^M @font-face {^M font-family: Mangal;^M font-style: normal;^M font-weight: normal;^M src: url(MANGAL0.eot);^M }^M -->^M </STYLE>^M </head> <body> <font face="Mangal">Hello There..</font> </html> But still the text appeared in English itself. I tried adding each of the following to my html document: HTML Code: <!-- inside head : > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-user-defined"> <!-- On top of html doc> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> And tried to open the file in IE / Firefox but it didn't work. The text appears in English itself. Everytime I made changes I tried changing the charset from default to utf-8 to user-defined but the text still remained in English. I tried typing text using Mangal font in notepad / openoffice but it didn't work. Earlier only rectangles appeared. After addition of support for complex script (Control panel -> regional settings -> languages), I am seeing text typed in notepad with Mangal font appearing in English. But still I don't see Hindi text getting typed in Notepad / openoffice-writer and most importantly not in the browser with my html So I'll be most obliged and happy if some one could help me out with basic steps towards writing html document which uses non-english font. To be specific Mangal. Thanks in anticipation. Hey. I was wondering if this php code can be put into html? HTML Code: include($phpbb_root_path . 'PATH' . $phpEx); Or is there some other html code with does that same job? Hello everyone this is my first time htmlforums.com and i have a quick and hopefully simple question for you guys to answer. I have this code for a flash audio player and in the html code of the whole thing theres a part that looks like this:
PHP Code: ...&ShowPlaylist=1&ShowEQ=1&firstTrack=5&initVol=100" wmode="transparent" /></embed><BR><CENTER><A Where it says firstTrack=# instead of 5 or any other number is there some sort of character that i can type in to make it choose randomly out of total of nine tracks? Thanks for the help. Hi everybody, I'm building a website for a project at school and I'm encountering some problems. It's my first website, so excuse me if I ask some stupid questions. Because it's a project for physics, I have to write down a lot of mathematical symbols, for example. pi, log, sin, ph, cos, tan, e, accents, etc. Do you guys know a program or website where I can find the html codes for these symbols? None of the site I found is displaying the codes I need.. Thank you How should I define the meta "lang" while I'm using both languages, English and Japanese in a single HTML page? Does this markup make sense to you? http://www.hanamiweb.com/utf8test.html I have a question about US/DE website coding. I was asked some time ago to build a website for the company I work for and I am now being asked to build a website for our company in german/deutsche. My main concern is not the text itself, we have several native germans here that will translate it for me, but for search engines and coding. Can I code the website in standard html written in english with the visible text in german, even though it will have a "www.name.de"? Will it be searchable with google.de? Will it be able to correctly viewed by browsers in europe? Hello all, I don't know if this is the correct forums but here goes. I have an english site that needs to be viewed in Farsi language. I don't know where to start but my boss seems to think we can just place a script in the header to translate all the content, but I cannot find that script. Is there a script for this? What is the best way in going about this. Thanks again for your help. I'm using a popular php video-sharing script for my web site. I've modded it so vistors must pay to view a video, however the path to the thumbnail appears on the html page in the View Source code, which is very similar to the path to the actual video. Is there any way to hide the path code? Hi. I like to include an image in my html file. The file itself is located at: C:\Documents and Settings\Pourang\Desktop The image is located at: C:\Documents and Settings\Pourang\Desktop\VIDEO_TS According to Head First With HTML book: This is the path I must include in my <img> empty element: <img src=" VIDEO_TS/the name of image file " OR: /VIDEO_TS/the name of image file " Right? relative paths or something else it's called. But I can't get it right? it's a broken link, no image is uploaded. Can you help me with this? thank you. I need to be able to specify <base> something like: Code: <base href="../html/"> but this doesn't work. I have tried: Code: <base href="file://../html/"> but that doesn't work either. Howeve, if I use an absolute path like: Code: <base href="file://C:\html/"> it works fine. Is there a way to specify a relative path in a <base> tag? Thanks, -sbs Hi all, I ran a link check for my site using software. and i got the errors as INVALID CHARACTER details are as below. Page - Category - 108 - Invalid character Date - 11/16/08 Severity - 5 Message - The character " ( 0x22 ) is not a valid ASCII character can anyone pls let me know what is this error and how could it be resolve ?? thanks a lot I have been creating a job description page and i copied it from a word document and editted it but for some reason im getting the euro and trademark in their when there is no character encoding for it, i have linked the web page below also the scrollbar doesnt scrolldown www.cleverblobs.co.uk/jobdesc.html Such is called 'x bar' in mathematics. Hey Guys, im new to this forum and i am in desperate need of help!! I have a site and when everypage loads it has a internet explorer error load. When double clicking the error it comes up with two different invalid errors and i cant work out how to solve the problem...(pretty new to the webworld) first one: Line: 2 Char: 1 Error Invalid Character Code: 0 URL: http://content.thisis.co.uk/gloucest...home/home.html Second one: Line: 199 Char: 1 Error Invalid Character Code: 0 URL: http://content.thisis.co.uk/gloucest...home/home.html What does all this mean?! The code for the test is to long to add........ Im just so stuck!!!!!! Any help would be greatly appreciated! Many thanks in advance! Matt Hi All, Good Evening I am new into this forum..My question i have a .html file which are having images mentioned as absolute path.How to provide them in relative path so that when i run the same html in other machine it should run well without any disapperaing of icons. Below is the small tag code which need to be converted. Quote: <h3> <a href="#redirect"><font size=4.2 face=" Palatino Linotype" color="#9400D3">a) About Tool <img border="0" src="C:\\Forum Tool Code\\SNF Automation Executor_April20_2009\\Images\\edit.png" width="30" height="25"> </font> </a> </h3> Thanks in advance. regards, Viswanadh I have a link from a web page to a page on another server. The link works fine, but the Title at the top of the new page displays the full path as well as the HTML allocated Title. Can anyone advise me how to stop the path being displayed? Thanks Dave Hi, Greetings..! In the <img> can I refer to a system folder means I need to refer to a image that is in application data or home drive like %homedrive% or %appdata% will this work..? Thanks SaNv... Hi, This is a strange problem. I have a small personal website written in UTF-8, which I have indicated with the Content-Type tag in the head, as you may verify. Nontheless, Firefox (at least, haven't tried any other browser) misinterprets and renders the page in ISO-8859-1, leading to the misrendered characters under item 5 under "Documents". As Firefox's "page info" dialog tells me, the Content-Type tag is recognized but the encoding is still ISO-8859-1. Viewing the page locally works fine, same with every other server I have tried. Why? Can this sort of setting be overridden by the server? http://validator.w3.org/check?uri=ht...ss =1&group=0 Under "Potential Issues", I have no idea what that means, how can I fix it? (Source is shown at link) Hello, I receive the following error when I try to set the value with sharp. How can I solve this problem ? HTML Code: <div name="palette" dojoType="dijit.ColorPalette" value="#FFFFFF"> </div> HTML Code: value="#FFFFFF" illegal character [Break on this error] (#FFFFFF) |