473,668 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

“ and Internet Explorer (6)

People insist on examples, so here is my page:
http://swiftys.org.uk/therules.html

A colleague in China is viewing the page using IE6 any my “
characters are coming out as pair of Chinese glyphs, and taking the
following plain ASCII character with them. The rest of the page is
rendered more or less correctly.

I'd always assumed that things like “ would render correctly under
all circumstances, unless the client didn't have the right font to
display them.

Is this more likely a font issue on the target system or an IE6 problem?

We are obliged to stay on IE6 as some of our corporate applications fail
under IE7.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Oct 29 '08 #1
24 3905
Swifty schrieb am 29.10.2008 14:28:
People insist on examples, so here is my page:
http://swiftys.org.uk/therules.html
404 - file not found

--
Mit freundlichen Grüßen
Holger Jeromin
Oct 29 '08 #2
Swifty wrote:
People insist on examples, so here is my page:
http://swiftys.org.uk/therules.html
We'd prefer example rules that result in a 200 OK response. :-)
I guess the correct URL is
http://swiftys.org.uk/rules.html

The encoding of the page is not specified in HTTP headers _or_ in a meta
tag. This means that the client must guess, and different browsers will
guess differently. In China, making a guess on an encoding that is widely
used in China is not a bad idea, but it may break Western pages.

Using View/Encoding on IE 7, I tested the page on four Chinese encodings. In
three cases, I saw some Chinese characters in the midst of English texts; in
the fourth, Big5, the page is differently broken (some characters shown as
bullets). This was more or less to be expected.
A colleague in China is viewing the page using IE6 any my “
characters are coming out as pair of Chinese glyphs, and taking the
following plain ASCII character with them. The rest of the page is
rendered more or less correctly.
This matches my test results and strongly suggests that it is an encoding
problem. The quickest fix is to add
<meta http-equiv="Content-Type" content="text/html;charset=wi ndows-1252">
I'd always assumed that things like &ldquo; would render correctly
under all circumstances, unless the client didn't have the right font
to display them.
More or less so, and the "unless" reservation is rather theoretical. But the
problem is that in the eyes of a browser, or other user agent, your
document's content is unspecified. It is a sequence of bytes (or a sequence
of bits) with no interpretation assigned to them. So why should they think
the document contains characters "&", "l", etc.?

In practice, if your document contained _only_ bytes in the ASCII range,
then the problem probably would not appear, though there is really no
guarantee. Your document contains also curly quotation marks and apostrophes
in windows-1252 (Windows Latin 1) encoding, and since they are outside the
ASCII range, there will be different guesses on what they mean.
Is this more likely a font issue on the target system or an IE6
problem?
Neither.
We are obliged to stay on IE6 as some of our corporate applications
fail under IE7.
Why would that matter to the way you author web pages?

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Oct 29 '08 #3
Jukka K. Korpela wrote:
In practice, if your document contained _only_ bytes in the ASCII range,
then the problem probably would not appear, though there is really no
guarantee. Your document contains also curly quotation marks and
apostrophes in windows-1252 (Windows Latin 1) encoding, and since they
are outside the ASCII range, there will be different guesses on what
they mean.
How odd. I edited the source (rules.html, not therules.html, but I've
now created a hard link, so the name is optional) and found some weird
left and right double quote ASCII characters (0x93 and 0x94) in there. I
wouldn't know how to put those in there, so how they got there is a
mystery. I've changed them to &ldquo; and &rdquo; and I'll ask my
colleague to try again. I've just remembered that I imported the text of
this page from a Powerpoint document, so that probably that's where the
odd characters came from.
>We are obliged to stay on IE6 as some of our corporate applications
fail under IE7.
Why would that matter to the way you author web pages?
My colleague told me that the page rendered correctly in Firefox, and I
had no idea that I'd somehow managed to get weird characters into my
HTML, so my initial reaction was that it might be an IE6 problem. Had
this been the case, I didn't want people telling us to upgrade to IE7,
as that is not an option at the moment.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Oct 29 '08 #4
Swifty wrote:
How odd. I edited the source (rules.html, not therules.html, but I've
now created a hard link, so the name is optional) and found some weird
left and right double quote ASCII characters (0x93 and 0x94) in
there. I wouldn't know how to put those in there, so how they got
there is a mystery. I've changed them to &ldquo; and &rdquo; and I'll
ask my colleague to try again. I've just remembered that I imported
the text of this page from a Powerpoint document, so that probably
that's where the odd characters came from.
It's actually relatively simple. Powerpoint, like Microsoft Office software
in general, converts ASCII quotation mark ", U+0022, and Ascii apostrophe ',
U+0027, into language-dependent double and single quotation marks. This is
usually a nice feature, provided that the language setting is correct and
that you take some care in using the text in other contexts.

In particular, if you cut and paste data and save it in "ANSI encoding" (a
Microsoft misnomer for different nonstandard 8-bit encodings), such as
windows-1252 in the Western world, as many programs do by default, they will
usually be automatically convented to that encoding. All is well until the
data is sent to some software without telling the encoding. And even then
things might appear to be OK as long as the software then guesses that the
data is windows-1252 encoded (as most web pages without encoding information
probably are).

If you like you can use &ldquo;, but it's really simpler to declare the data
as windows-1252 encoded.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

Oct 29 '08 #5
On 10/29/2008 10:20 AM, Swifty wrote [in part]:
>
My colleague told me that the page rendered correctly in Firefox, and I
had no idea that I'd somehow managed to get weird characters into my
HTML, so my initial reaction was that it might be an IE6 problem. Had
this been the case, I didn't want people telling us to upgrade to IE7,
as that is not an option at the moment.
Web pages should be written to be viewed with ALL browsers. This
applies to ALL of your Web pages, not merely the one in question. See
<http://www.anybrowser. org/campaign/index.htmlfor some design
guidelines in this direction.

More important, however, is that the pages use valid HTML or XHTML.
Your cited page (URL as corrected by Jeromin) has only 4 HTML errors,
much fewer than I usually see when someone has a problem like yours.
Fix those errors and see if that helps resolve your problem.

Firefox might have rendered the page correctly, but that was pure luck.
For whatever afflicts your page, the guess coded into Firefox was
fortuitous for you; and the guess coded into IE was not. In other
cases, IE guesses correctly; but Firefox does not. If there are no HTML
or XHTML errors, there is no guessing.

As for your assertion that "We are obliged to stay on IE6", you have
tied yourself to a falling star. By various measurements, the share of
the browser market held by all versions of IE (including both 6 and 7)
has fallen steadily over the past five years. In 2003, IE might have
held as much as 88% of the market. As of this fall, it holds between
49% and 57%. See my <http://www.rossde.com/internet/browsers.html>.

--

David E. Ross
<http://www.rossde.com/>

Q: What's a President Bush cocktail?
A: Business on the rocks.
Oct 29 '08 #6
On 2008-10-29, David E. Ross <no****@nowhere .notwrote:
On 10/29/2008 10:20 AM, Swifty wrote [in part]:
>>
My colleague told me that the page rendered correctly in Firefox, and I
had no idea that I'd somehow managed to get weird characters into my
HTML, so my initial reaction was that it might be an IE6 problem. Had
this been the case, I didn't want people telling us to upgrade to IE7,
as that is not an option at the moment.

Web pages should be written to be viewed with ALL browsers. This
applies to ALL of your Web pages, not merely the one in question. See
<http://www.anybrowser. org/campaign/index.htmlfor some design
guidelines in this direction.

More important, however, is that the pages use valid HTML or XHTML.
Your cited page (URL as corrected by Jeromin) has only 4 HTML errors,
much fewer than I usually see when someone has a problem like yours.
Fix those errors and see if that helps resolve your problem.

Firefox might have rendered the page correctly, but that was pure luck.
For whatever afflicts your page, the guess coded into Firefox was
fortuitous for you; and the guess coded into IE was not. In other
cases, IE guesses correctly; but Firefox does not. If there are no HTML
or XHTML errors, there is no guessing.
There still may be plenty of guessing: the W3C specifications don't
define everything and some things they leave explicitly undefined.
Sometimes they even say the browser is free to make a guess.

But yes, getting rid of all the errors certainly helps a lot and is the
first thing to do.
Oct 30 '08 #7
On 29 Oct, 18:20, Swifty <steve.j.sw...@ gmail.comwrote:
I've changed them to &ldquo; and &rdquo; and I'll ask my
colleague to try again.
So did your colleague (as your original post suggests) try a document
with these _as_entity_refe rences_ and have a problem, or were they
coded as literal characters at the time they reported the problem?
Oct 30 '08 #8
Andy Dingley wrote:
So did your colleague (as your original post suggests) try a document
with these _as_entity_refe rences_ and have a problem, or were they
coded as literal characters at the time they reported the problem?
At the time the problem was initially reported (both *to* me, and *by*
me, here) there were 0x92,0x93 and 0x94 hex values in my HTML, imported
by cut'n'paste from Powerpoint. All I did was add sufficient HTML to get
the formatting roughly right, and I didn't notice the "odd" characters
as *my* browser rendered them correctly.

Then my Chinese colleague reported a formatting problem (in case you're
wondering why I should be discussing the content of that page in a work
context, it is because I give lessons in spoken English, so it doesn't
matter *what* we talk about, as long as it is "interestin g" English, and
we'd wandered onto the topic of asking if we are fat, see the 11th rule)
and Jukka was kind enough to point out that my page contained characters
outside the allowed range (my words). I fixed the >0x7f characters,
using entity references where necessary, and my page now formats
perfectly. This may be a strange new use of the word "perfectly" that
you hadn't come across before.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Oct 30 '08 #9
In article <09************ *************** ***@brightview. com>,
Swifty <st***********@ gmail.comwrote:
>
Andy Dingley wrote:
So did your colleague (as your original post suggests) try a document
with these _as_entity_refe rences_ and have a problem, or were they
coded as literal characters at the time they reported the problem?

At the time the problem was initially reported (both *to* me, and *by*
me, here) there were 0x92,0x93 and 0x94 hex values in my HTML, imported
by cut'n'paste from Powerpoint. All I did was add sufficient HTML to get
the formatting roughly right, and I didn't notice the "odd" characters
as *my* browser rendered them correctly.
Oddly enough, I experienced a similar problem just today when pasting
some text from a Word document into the "notes" area of a PowerPoint
slide. My version of Word has smart quotes enabled, and the pasted
text included both left and right double quotes. Once in PowerPoint,
I was intrigued to see that the left double quote and first character
immediately following were transformed into a Chinese character, while
the trailing double quote was converted to the "undefined character"
for the font face in use.

In short, beware of "smart quotes" when cutting/pasting!
Oct 30 '08 #10

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

Similar topics

1
629
by: Ashvin Navare | last post by:
Hi, We want to disable BACK & FORWARD button of the browser so that user is forced to navigate through the menu options provided in the site. The browser used is Internet Explorer only. Please suggest some solution or any other alternate approach. Early response is appreciated. Regards,
1
1219
by: MLH | last post by:
I think I must be getting too old and my mind is failing. I never knew browsers could double as word processors or text editors. But recently I bought a book to assist in my effort to launch an AMP application on a linux server. I'm new to linux, Apache, MySQL and PHP. But I have an application that's already been built, a linux box that's already been build with Apache, MySQL and PHP already installed and I need to how to get the MySQL...
2
1488
by: DeadlyTedly | last post by:
Hi, I'm attempting to make use of nested object tags (in HTML) as per the w3c standard here: http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.3.1 This details the HTML 4.01 Specification with regard to object tags. When I create a nested object in an ASP page, I get the following server error:
3
1978
by: Raterus | last post by:
Anyone know how I can figure out the figure out the response.redirect trail a browser goes through when I'm using response.redirect on the server. Right now Internet Explorer just automatically redirects, I need to figure out, on the client, the pages it is being told to go to. Yes I know I can look in the address bar, but say the Response object is redirecting 3 or 4 pages per Request. I need this for a debugging issue. Thanks --Michael
28
13185
by: entfred | last post by:
I have the following line of html: &nbsp;&nbsp1234&nbsp;&nbsp;&nbsp;&nbsp;&nbspabc&nbsp;&nbsp;&nbspyow In Internet Explorer 6.0, the columns look ok using the above html: 1234 abcd yow But, in firefox, for same html, getting this:
3
14255
by: mthomsit | last post by:
Hi, I have a script which after a time shows the following error in IE: "A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive". The page is quite complex and uses ajax to post updates to the server, updating parts of the page based on the response. It uses YUI (event and dom mainly). There are no infinite loops or similar constructs.
1
10336
by: CFFAN | last post by:
how to repalce “ this character in coldfusion <cfscript> str_fnvalue = replace(str_fnvalue," “ ","&ldquo;","all"); str_fnvalue = replace(str_fnvalue,"”","&rdquo;","all"); <cfscript> I put the cose like this but not working correctly.i tried to replace it with a word but..it not double quots...it is "&ldquo" "&rdquo;"
1
5909
by: bogdanm | last post by:
Hello everyone, I am having a probleme with a issuu code when trying to insert it o my site it doesnt work in IE but in mozzila works fine the code is bellow: <div><object style="width:500px;height:300px" ><param name="movie"...
2
3148
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error message as in alert box as " Internet Explorer cannot open the Internet site http://google.citycarrentals.com.au/viewalllocations.php . Operation aborted". It is working in Mozilla . Here i mentioned my code . I am facing this problem several...
0
8462
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
8381
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
8893
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
8799
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
8586
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
8658
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
5681
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
4205
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...
2
1786
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.