473,657 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slightly off-topic question

Ok sorry for the off-topic question.

I see a lot of people posting their html code here.
Why so many people still use iso-8859-X instead of UTF8? Is there a
particular reason?

For my latest develops (web pages in greek) I always use utf8 both in
html&DB. Isn't that the right thing to do?

again sorry for the off-topic question
Dec 22 '06 #1
11 1604
Harris Kosmidhs wrote:
I see a lot of people posting their html code here.
Why so many people still use iso-8859-X instead of UTF8? Is there
a particular reason?
Laziness, in my case. Dreamweaver uses 8859-1 by default. I only
changed it recently, when I found out more about 8859 and UTF, and also
found out that it was relatively easy to change Dreamweaver's default
too.

--
K A Nuttall
www.yammer.co.uk
Re-type the e-mail address how it sounds, remove .invalid
Dec 22 '06 #2
Scripsit Harris Kosmidhs:
Ok sorry for the off-topic question.
You are not excused. Learn how to find the right group and how to write
meaningful Subject lines. "Off-topic" doesn't belong there; either your
message is on-topic, or it should not be sent.
I see a lot of people posting their html code here.
That's a mistake, as the regulars regularly explain, except perhaps in
hopeless cases.
Why so many people still use iso-8859-X instead of UTF8? Is there a
particular reason?
It doesn't matter from the CSS perspective, since CSS should normally use
only ASCII characters anyway, to be on the safe side. CSS is normally not
viewed by users who visit web pages, so there's no compelling reason to
localize it.
again sorry for the off-topic question
Stop babbling that. It doesn't make the off-topic posting any better.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Dec 22 '06 #3
On 2006-12-22, Jukka K. Korpela <jk******@cs.tu t.fiwrote:
[snip]
>Why so many people still use iso-8859-X instead of UTF8? Is there a
particular reason?

It doesn't matter from the CSS perspective, since CSS should normally use
only ASCII characters anyway, to be on the safe side. CSS is normally not
viewed by users who visit web pages, so there's no compelling reason to
localize it.
What about values of the content property (used with the :before and
:after pseudos)?

You might need those in Arabic, Chinese, etc.

I'm guessing that content language and encoding should be delivered for
CSS files in the server headers in just the same way as for HTML and
script files.
Dec 22 '06 #4
Scripsit Ben C:
What about values of the content property (used with the :before and
>after pseudos)?
Their usefulness in WWW authoring is very limited, due to lack of any
widespread support.
You might need those in Arabic, Chinese, etc.
Might I? I doubt that. But even then, the strings would typically be short,
e.g. specifying quotation marks or markers or whatever, and using the \u...
escapes I could still have the CSS code written in ASCII only.
I'm guessing that content language and encoding should be delivered
for CSS files in the server headers in just the same way as for HTML
and script files.
Content language is immaterial. Encoding is specified, if needed, in HTTP
headers as for any other subtype of text. The rest is a sad story of
confused guesswork, but we don't need to let things go there, do we?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Dec 22 '06 #5
On 2006-12-22, Jukka K. Korpela <jk******@cs.tu t.fiwrote:
Scripsit Ben C:
[snip]
>I'm guessing that content language and encoding should be delivered
for CSS files in the server headers in just the same way as for HTML
and script files.

Content language is immaterial.
For CSS files, yes; for HTML documents it influences font selection, and
it would be nice if more webservers delivered the Content-language
header so browsers didn't have to guess the language from the encoding
or from the actual characters present (or various other tricks).
Dec 23 '06 #6
Ben C wrote:
For CSS files, yes; for HTML documents it influences font selection, and
it would be nice if more webservers delivered the Content-language
header so browsers didn't have to guess the language from the encoding
or from the actual characters present (or various other tricks).
The content-language header just describes the primary language of the
intended audience. The HTML lang attribute describes the language the
document is actually written in.

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 23 '06 #7
Scripsit Ben C:
>Content language is immaterial.

For CSS files, yes;
Which is what we discuss here.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Dec 23 '06 #8
On 2006-12-23, David Dorward <do*****@yahoo. comwrote:
Ben C wrote:
>For CSS files, yes; for HTML documents it influences font selection, and
it would be nice if more webservers delivered the Content-language
header so browsers didn't have to guess the language from the encoding
or from the actual characters present (or various other tricks).

The content-language header just describes the primary language of the
intended audience. The HTML lang attribute describes the language the
document is actually written in.
That too, yes, but if there's no lang attribute, the Content-language
header is also a good place to look.
Dec 23 '06 #9
Ben C wrote:
>The content-language header just describes the primary language of the
intended audience. The HTML lang attribute describes the language the
document is actually written in.
That too, yes, but if there's no lang attribute, the Content-language
header is also a good place to look.
Not that good, just because a document is written for people who's primary
language is English doesn't mean that the document is written in English.

.... and if an author has failed to use the lang attribute, how could the
Content-Language header be trustworthy? Its much harder to set up.

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Dec 24 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2579
by: Dag Sunde | last post by:
Is there any way to make a <div> section overlap the (windowed) content of a java Applet? I'm asking this, because JavaScript menus usually ends up beneath Applet windows... -- Dag.
36
2842
by: Hoopster | last post by:
Hello, I know nothing about C++ but want to get started. Is there any good free C++ program that I can try to see if I like programming? I also need a good free compiler. I don't want to purchased the regular VB C++ until I know that I will like it.
6
2052
by: MLH | last post by:
I would like a scanner - something like a pencil that would allow me to attempt to scan printed text off hardcopies. Not all text on a page, mind you. Something I could use to scan just the words "scan printed text" off the second line in this post would be great! A selective scanning tool - I guess is what you would call it. I did a search for pencil type scanners and came up empty handed. Anybody got ideas?
8
1805
by: David M. Wilson | last post by:
I know this doesn't specifically pertain to the scope of comp.lang.c, but I don't know of a better forum to post it on, besides, what is the practicality of comp.lang.c if it weren't for answers to questions such as this? :) I see an awful lot of code on a day to day basis like so: (void) printf(...);
1
1468
by: Bob | last post by:
There is an aspect of Windows design that I've always disagreed with, and that is its focus-switching behavior. I'll be typing something, and another application pops up a message box right in the middle of what I'm doing. Maybe I'll even hit enter for a line break and instead answer a yes/no dialogue that I didn't even get a chance to read. Or, perhaps I ctrl-click on a web link and go off to do something else while I wait for it to load....
2
1212
by: Juho Schultz | last post by:
if ((data > 0) or (datadict.has_key)): Traceback (most recent call last): File "reduce.py", line 524, in remove_badvalues if ((data > 0) or TypeError: unsubscriptable object However, the bug sits on the next line. I used square brackets when normal brackets were needed - should have written datadict.has_key(key)
27
1825
by: Smithers | last post by:
Until now I have worked on small teams (1-3 developers) and we've been able to stay out of each others way. Now I'm about to start work on a project that will have 5 developers. I would appreciate some guidance on how we can proceed to develop without having to worry about "who is working on what files". We're developing with SQL Server 2005, VS 2005 Pro (no way management is going to spring for the $10,000 team edition for everybody),...
4
1729
by: Chris Dunaway | last post by:
I am writing a simple point of sale type application. One of the functions includes reading a weight from a scale and then multiplying that weight by a UnitPrice to get an amount. The scale returns its weight in pounds to 3 decimal places. We then take this weight and multiply by the unit price per pound which is $3.20. Sometimes, I get total amounts that have more than 2 decimal places. For example, if the scale reads .995 lbs and...
1
2489
by: Phil Latio | last post by:
I have a number of spreadsheets, each with between 1000-6000 rows (each row is a property) and they all need to be combined into a single database. Each spreadsheet contains slightly different information and 80% of the properties in spreadsheet_01 also appear spreadsheet_02. Spreadsheet_03 contains slightly different information again and perhaps has 60% of properties in this one also appear in other spreadsheets. The problem is not...
4
1354
by: rlwebbnafex | last post by:
Hello, I have never used generic programming so I need a little help for an idea on what I can do. I have defined a lot of classes like the following. The classes are all pretty much the same, they just represent data structures that I need to use later. I create an vector of each of these data structures later. It is just a record-keeping system. Anyhow, is there a way to create a generic structure and define the few member functions I...
0
8399
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
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8606
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
7337
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...
0
5632
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
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.