473,543 Members | 2,500 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disadvantages of using windows-1252 codepage?

DC
We are about to go online with an ASP.Net site. We have found that it
is easiest for us to use windows-1252 content encoding, since that
solves our problems with some special characters. Are there some
general disadvantages about using this codepage (most sites I know use
utf-8 or iso) - I am thinking of things like search engine
incompatibiliti es - or should it be OK to use 1252?

Thanks for any hint in advance,

Regards
DC

Jun 17 '06 #1
12 2147
The characters in the windows-1252 code page that are different (0x80 to
0x9F), and apparently the reason you want to use it, are not recognized by
most browsers, and are not supported by HTML standards. You would do better
to use the standard UTF-8 encoding, and use HTML-Encoding for special
characters.

Any character can be HTML-Encoded by using the &#number sequence in the
HTML, in which "number" is the numerical value of the character. For
example, 'ä' would be HTML-Encoded as &#228. In addition, you can use the
System.Web.Http ServerUtility.H tmlEncode (or the
System.Web.Http Utility.HtmlEnc ode) method to ensure that any block of text
is properly HTML-encoded, without having to HTML-encode individual
characters, or know their numeric values. Only illegal HTML characters will
be encoded. Similarly, blocks of text can be decoded back into their
original state using the HttpDecode method.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

"DC" <dc@upsize.de > wrote in message
news:11******** *************@u 72g2000cwu.goog legroups.com...
We are about to go online with an ASP.Net site. We have found that it
is easiest for us to use windows-1252 content encoding, since that
solves our problems with some special characters. Are there some
general disadvantages about using this codepage (most sites I know use
utf-8 or iso) - I am thinking of things like search engine
incompatibiliti es - or should it be OK to use 1252?

Thanks for any hint in advance,

Regards
DC

Jun 17 '06 #2
Thus wrote Kevin,
The characters in the windows-1252 code page that are different (0x80
to 0x9F), and apparently the reason you want to use it, are not
recognized by most browsers, and are not supported by HTML standards.
They are regular Unicode characters and thus can be represented as HTML entities.
Otherwise, a page like http://www.microsoft.com/globaldev/r...sbcs/1252.mspx
couldn't exist ;-)

Also, Windows-1252 is registered with IANA, and supported on many platforms.
Actually, I would assume that there's no modern platform that doesn't offer
support for Windows-1252.
You would do better to use the standard UTF-8 encoding, and use
HTML-Encoding for special characters.


I won't disagree with that :-)

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jun 18 '06 #3
> Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform that
doesn't offer support for Windows-1252.

Platforms? Sure. Browsers? No.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

"Joerg Jooss" <ne********@joe rgjooss.de> wrote in message
news:94******** *************** ***@msnews.micr osoft.com... Thus wrote Kevin,
The characters in the windows-1252 code page that are different (0x80
to 0x9F), and apparently the reason you want to use it, are not
recognized by most browsers, and are not supported by HTML standards.


They are regular Unicode characters and thus can be represented as HTML
entities. Otherwise, a page like
http://www.microsoft.com/globaldev/r...sbcs/1252.mspx
couldn't exist ;-)

Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform that
doesn't offer support for Windows-1252.
You would do better to use the standard UTF-8 encoding, and use
HTML-Encoding for special characters.


I won't disagree with that :-)

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de

Jun 18 '06 #4
Thus wrote Kevin,
Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform
that doesn't offer support for Windows-1252.

Platforms? Sure. Browsers? No.


Out of curiosity: What relevant browser wouldn't support Windows-1252?

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jun 19 '06 #5
Thus wrote Joerg,
Thus wrote Kevin,
Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform
that doesn't offer support for Windows-1252.

Platforms? Sure. Browsers? No.

Out of curiosity: What relevant browser wouldn't support Windows-1252?


Sorry, make that "doesn't".. .

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jun 19 '06 #6
DC
Thank you for the discussion. I also thought that we would be better
off to use utf-8 or iso, but a lot of our static and db content is not
properly encoded for anything else than 1252. From what I hear we will
not get catastrophic results with using 1252 but we should convert our
content and preferrably use utf-8 if we can.

Regards
DC

Joerg Jooss schrieb:
Thus wrote Joerg,
Thus wrote Kevin,
Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform
that doesn't offer support for Windows-1252.

Platforms? Sure. Browsers? No.

Out of curiosity: What relevant browser wouldn't support Windows-1252?


Sorry, make that "doesn't".. .

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de


Jun 19 '06 #7
I couldn't say offhand. First you would have to define "relevant." Then I
would have to check. But if you're curious, and since you already know what
your definition of "relevant" is, and since my time is *highly* limited, I
suggest that you might check for yourself.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

"Joerg Jooss" <ne********@joe rgjooss.de> wrote in message
news:94******** *************** ***@msnews.micr osoft.com...
Thus wrote Joerg,
Thus wrote Kevin,
Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform
that doesn't offer support for Windows-1252.

Platforms? Sure. Browsers? No.

Out of curiosity: What relevant browser wouldn't support Windows-1252?


Sorry, make that "doesn't".. .
Cheers,
--
Joerg Jooss
ne********@joer gjooss.de

Jun 19 '06 #8
I did have a few minutes to look up one reference for you. I'll leave it to
you to read it:

http://www.w3.org/International/tuto...rial-char-enc/

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

I recycle.
I send everything back to the planet it came from.

"Joerg Jooss" <ne********@joe rgjooss.de> wrote in message
news:94******** *************** ***@msnews.micr osoft.com...
Thus wrote Kevin,
Also, Windows-1252 is registered with IANA, and supported on many
platforms. Actually, I would assume that there's no modern platform
that doesn't offer support for Windows-1252.

Platforms? Sure. Browsers? No.


Out of curiosity: What relevant browser wouldn't support Windows-1252?
Cheers,
--
Joerg Jooss
ne********@joer gjooss.de

Jun 19 '06 #9
Thus wrote Kevin,
I couldn't say offhand. First you would have to define "relevant."
Something web developers generally consider worthwhile to develop and test
for.
Then I would have to check. But if you're curious, and since you
already know what your definition of "relevant" is, and since my time
is *highly* limited, I suggest that you might check for yourself.


Thanks, no. Assuming you either get a recent Mozilla or Firefox build for
any *NIX, BSD or Linux, the answer probably is that there is no issue.

Cheers,
--
Joerg Jooss
ne********@joer gjooss.de
Jun 20 '06 #10

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

Similar topics

8
23144
by: Wilbur | last post by:
My company is considering using C# for a large project and it is a language I'm only just now becoming familiar with. For the most part I like it and that seems to be the most logical choice as far as future support. My question is: what are the disadvantages or limitations of using C#? So far I've seen very few people willing to mention...
21
11168
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
54
6388
by: m.roello | last post by:
In the book: "Working with Microsoft Visual Studio 2005" Craig Skibo wrote: "The power of Visual Studio 2005 lies in its ability to empower users to build, test, and debug powerful applications quickly and easly." I don't agree on what concernes ASP .NET Web Sites in VS2005. All what involves Namespaces in Web sites has been disappeared....
11
7300
by: GVN | last post by:
Hi All, Can anyone guide me when asynchronous method calls will be benificial? Are there any disadvantages of using asynchronous calls? Thanks,
2
4724
emaghero
by: emaghero | last post by:
Hello All, I have been programming in C++ using Microsoft Visual Studio for quite some time now and I was wondering if there are any advantages in swithcing platforms from Windows to Linux. Is there any major difference or is it a matter of taste? The cost is not a major factor, as I get my software from the university, in any case I...
1
9152
by: vumani | last post by:
what is the advantages and disadvantages of Ms SQL server and java servletts front-end on the clien end. what is the advantages and disadvantages of Ms Access on the server, connected via JDBC and java on the client end. what is the advantages and disadvantages of HTML on the client end,coupled with SQL server and ODBL on the server end.
21
14611
by: Jonathan Sachs | last post by:
I'm a programmer learning PHP. I'm looking for some input on its strong and weak points compared to other server-side programming environments, e.g., Java Server Pages. Please note, this is not a religious question. Programming languages are tools to me. I just want information about where different types of solutions are likely to be...
0
3384
by: Marcel Overweel | last post by:
Hi, I'm developing a set of services for a software solution. It will be broken down in several application including a few windows services. It is very likely that most of these services will run on one (server) computer but we can't enforce that. To make support and configuration a little easier, I was
0
7399
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...
0
7341
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...
0
7584
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. ...
0
7729
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...
0
7677
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...
0
5880
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...
1
5258
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...
0
4884
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...
1
952
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.