473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
incompatibilities - or should it be OK to use 1252?

Thanks for any hint in advance,

Regards
DC

Jun 17 '06 #1
12 2134
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.HttpServerUtility.HtmlEncode (or the
System.Web.HttpUtility.HtmlEncode) 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*********************@u72g2000cwu.googlegro ups.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
incompatibilities - 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********@joergjooss.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********@joergjooss.de> wrote in message
news:94**************************@msnews.microsoft .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********@joergjooss.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********@joergjooss.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********@joergjooss.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********@joergjooss.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********@joergjooss.de> wrote in message
news:94**************************@msnews.microsoft .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********@joergjooss.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********@joergjooss.de> wrote in message
news:94**************************@msnews.microsoft .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********@joergjooss.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********@joergjooss.de
Jun 20 '06 #10
Thus wrote Kevin,
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/


Uh... thanks for patronizing me, but what makes you assume that I didn't
know that already?

You made an interesting claim and I just wondered if you could name an example.
No reason to behave silly here.

--
Joerg Jooss
ne********@joergjooss.de
Jun 20 '06 #11
Gee, Joerg, I'm sorry I was patronizing you. I only hope that someday I can
be as kind and uninsulting as you are in my own responses.

--

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

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

"Joerg Jooss" <ne********@joergjooss.de> wrote in message
news:94**************************@msnews.microsoft .com...
Thus wrote Kevin,
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/


Uh... thanks for patronizing me, but what makes you assume that I didn't
know that already?

You made an interesting claim and I just wondered if you could name an
example. No reason to behave silly here.

--
Joerg Jooss
ne********@joergjooss.de

Jun 20 '06 #12
Thus wrote Kevin,
Gee, Joerg, I'm sorry I was patronizing you. I only hope that someday
I can be as kind and uninsulting as you are in my own responses.


Please -- not another useless fight.

I didn't realize you considered one of my previous responses insulting --
I'm still befuddled why and when...

I was really just wondering if you happen to know an example where Windows-1252
blows up in your face and one would say "Geez, I didn't expect *that* to
happen".

--
Joerg Jooss
ne********@joergjooss.de
Jun 20 '06 #13

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

Similar topics

8
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...
21
by: EmJayEm | last post by:
Can someone tell me the Disadvantages/Cons of web services? Thanks, EmJ.
54
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...
11
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
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. ...
1
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...
21
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...
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.