473,795 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What character encoding

8 New Member
Hey,
When I am writing an HTML Document, how do i know what character encoding I am using. Is Times New Roman have a specific character encoding or can it be found on my host server?

What do you think is the best type of encoding?
Thanks for any help that can be given
Jun 13 '07 #1
4 1856
drhowarddrfine
7,435 Recognized Expert Expert
There is a difference between encoding and font. Times New Roman is a font. There is no way to guarantee which font will display in a client's browser because it depends on which browser and OS they are using. Plus, they can set their browser to use a specific one.

However, you can specify your preferred font in css using 'font-family'.
Jun 13 '07 #2
praveen2gupta
201 New Member
Hey,
When I am writing an HTML Document, how do i know what character encoding I am using. Is Times New Roman have a specific character encoding or can it be found on my host server?

What do you think is the best type of encoding?
Thanks for any help that can be given

Hi , Encoding is related to the Language In which you wants to write and display. Times new Roman is the font and it is not related with the encoding.
At present ISO-8859-1 , UTF-8 , etc encoding is in use.
You should write the ecnoding in the meta tags of the Header section of the HTML page. The Example is as follows.
Expand|Select|Wrap|Line Numbers
  1. <META http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
  2.  
Jun 15 '07 #3
GGnOrE
8 New Member
Hey,
Thanx to both replies, sorry about the hold up. I've been busy.

The second reply was what I was really looking for. I was looking for the charset that my text file should be encoded to when be assced by a browser.

So I guess i should used utf-8!!!
Big Thank you to both replies though!!!
Jul 6 '07 #4
GGnOrE
8 New Member
I found a really good website about character encoding right here...
Looking over the html specifications promted me to look over character encoding in the first place.

http://www.joelonsoftw are.com/articles/Unicode.html
Jul 6 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1627
by: lkrubner | last post by:
I'm worried about idiot users that write long essays in Microsoft Word, then log into their accounts and bring up an HTML form and copy and paste the essay and hit submit. Or perhaps they do this using WordPerfect. Or perhaps they use MacWrite. I output everything from my site as UTF-8. I'd like to check the input for characters that are not UTF-8 and then turn the bad ones to an ASCII question mark. I could loop through a string as if...
7
4974
by: Mark | last post by:
Hi... I've been doing a lot of work both creating and consuming web services, and I notice there seems to be a discontinuity between a number of the different cogs in the wheel centering around windows-1252 and that it is not equivalent to iso-8859-1. Looking in the registry under HKEY_CLASSES_ROOT\MIME\Database\Charset and \Codepage, it seems that all variations on iso-8859-1 (latin1, etc) are mapped to code page 1252, which I'm...
7
3795
by: Art M | last post by:
I saved an html page the other day that encoded some punctuation with codes like â?T --> apostrophe (in case those characters don't show up in your news reader that's a_circumflex + euro + trademark) --Art
13
6142
by: Dan V. | last post by:
How do I create a one line text file with these control codes? e.g.: 144 = 0x90 and 147 = 0x93? I am trying to create a one line text file with these characters all one one row with no spaces. 1. 144 = 0x90 2. 147 = 0x93 3. STX = (^B = 2 = 0x2) 4. NUL = (^@ = 0 = 0x0)
6
2511
by: Pavils Jurjans | last post by:
Hello, I am experiencing a weird behaviour on my ASP.NET project. The project consists from client-side, which can be whatever environment - web page, EXE application, etc. The client sends HTTP POST request to the server with data, and the server has ASP.NET application that handles the request and gives answer. I have biled all the fat code down to a very simple test case, which consists from three files - HTML page, which does...
5
2579
by: Michiel | last post by:
problem: pasting characters from MSWord into wysiwyg editor (tinyMCE) When we paste text from Word (i.e. MSWindows) to the browser, and in the text is any special character, like smart quotes, but also accented letters, they show up incorrectly. What we see is e.g. ============= turtle species are Â"endangeredÂ" or Â"critically endangeredÂ"
9
2672
by: mistral | last post by:
What is difference between two encoding methods below and what method can be considered more "web safe", fully retaining functionality of the original source code, without the danger of misinterpretation of original code characters (code contains long Registry entries, activeX, etc). A.
5
4898
by: Timothy Madden | last post by:
Hello Is there a function that will allow me to output text written in utf-8 (from db for example) if my document has Content-Type: text/html; charset=ISO-8859-1 I mean htmlspecialchars() and htmlentities() will only convert characters that have an associated entity defined in HTML.
4
6985
by: Erwin Moller | last post by:
Hi, Background: I am working on a multilanguage project now, so I decided to switch to UTF-8 completely to avoid troubles with unicode character. I hope somebody can review my approach and comment on it. I am working on: Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
38
3659
by: Bill Cunningham | last post by:
When I want to clear memory space this is what I typically do myself, char a; int i; for (i=0;i != 100;++i) a='\0'; Now with the function memset I could do the same thing and it would be portable. But would it always work?
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.