I'd love to ask why this page is not rendering correctly in Safari on
a Macintosh but I suspect someone will tell me to validate the page
first. Nevertheless, if anyone sees an obvious reason that I'm
missing, I'd like to know. It looks like a missing div tag but I
can't see one. http://www.krubner.com/
Let's move on to a question that might be answerable. If i copy and
paste non-UTF-8 characters to the page, and then send out a UTF-8
charset UTF-8 header then I'll get the garbage characters that I'm
seeing? 23 10970
*lawrence* skrev 2004-10-01 09:34: I'd love to ask why this page is not rendering correctly in Safari on a Macintosh but I suspect someone will tell me to validate the page first. Nevertheless, if anyone sees an obvious reason that I'm missing, I'd like to know. It looks like a missing div tag but I can't see one.
http://www.krubner.com/
Let's move on to a question that might be answerable. If i copy and paste non-UTF-8 characters to the page, and then send out a UTF-8 charset UTF-8 header then I'll get the garbage characters that I'm seeing?
If you set charset UTF-8 in the header, you also have to save the
document as UTF-8 before uploading it. I belive it's saved in i default
charset, probably iso-8859-1
--
/Arne
Arne <ar**@luras.n u> wrote in message news:<SH******* **********@news b.telia.net>... *lawrence* skrev 2004-10-01 09:34: I'd love to ask why this page is not rendering correctly in Safari on a Macintosh but I suspect someone will tell me to validate the page first. Nevertheless, if anyone sees an obvious reason that I'm missing, I'd like to know. It looks like a missing div tag but I can't see one.
http://www.krubner.com/
Let's move on to a question that might be answerable. If i copy and paste non-UTF-8 characters to the page, and then send out a UTF-8 charset UTF-8 header then I'll get the garbage characters that I'm seeing?
If you set charset UTF-8 in the header, you also have to save the document as UTF-8 before uploading it. I belive it's saved in i default charset, probably iso-8859-1
Since sending out UTF-8 headers, I've started to get a lot of garbage
characters on the page. This despit hitting it with encode_UTF-8 in
PHP. The problem is I don't know what charset the text is in a head of
time, so I can't do any kind of proper conversion on the text. The web
is too heterogenous. I wonder how Blogger and TypePad tackle this
problem? Is it just luck that so few of their users end up with
garbage characters? Or is it because they standardize on a different
charset?
*lawrence* skrev 2004-10-02 02:13: Arne <ar**@luras.n u> wrote in message news:<SH******* **********@news b.telia.net>... *lawrence* skrev 2004-10-01 09:34: > I'd love to ask why this page is not rendering correctly in Safari on > a Macintosh but I suspect someone will tell me to validate the page > first. Nevertheless, if anyone sees an obvious reason that I'm > missing, I'd like to know. It looks like a missing div tag but I > can't see one. > > http://www.krubner.com/ > > > Let's move on to a question that might be answerable. If i copy and > paste non-UTF-8 characters to the page, and then send out a UTF-8 > charset UTF-8 header then I'll get the garbage characters that I'm > seeing?
If you set charset UTF-8 in the header, you also have to save the document as UTF-8 before uploading it. I belive it's saved in i default charset, probably iso-8859-1
Since sending out UTF-8 headers, I've started to get a lot of garbage characters on the page. This despit hitting it with encode_UTF-8 in PHP. The problem is I don't know what charset the text is in a head of time, so I can't do any kind of proper conversion on the text. The web is too heterogenous. I wonder how Blogger and TypePad tackle this problem? Is it just luck that so few of their users end up with garbage characters? Or is it because they standardize on a different charset?
What editor do you use for building and editing the pages?
In the editor I use, I can choose whatever encoding I want to use, and
on saving the file is saved in that encoding. If I open a file I can
change the encoding the same way, with just a click on a button in the
editors toolbar. In Windows XP you can also choose encoding for files
when saving them in Notebook.
Because I save the files in UTF-8 I don't manually need to do any
conversion in the text, when writing it. My guess is that Blogger and
TypePad is done the same way, the posts that the user write is saved as
UTF-8 and since that is a unicod, all kind of characters and languages
can be used.
--
/Arne
Arne <ar**@luras.n u> wrote in message news:<%9******* **********@news b.telia.net>... Since sending out UTF-8 headers, I've started to get a lot of garbage characters on the page. This despit hitting it with encode_UTF-8 in PHP. The problem is I don't know what charset the text is in a head of time, so I can't do any kind of proper conversion on the text. The web is too heterogenous. I wonder how Blogger and TypePad tackle this problem? Is it just luck that so few of their users end up with garbage characters? Or is it because they standardize on a different charset? What editor do you use for building and editing the pages?
Most people use Microsoft Internet Explorer to build pages on their
weblogs. That is, they log in and type some text in a TEXTAREA and hit
"Post" and then there words appear as a new page on the web.
The problem arises when they copy and paste from other places. The
biggest problems, I think, arise when they copy text off a webpage
that uses another web page encoding.
You can check see for yourself here: http://www.publicdomainsoftware.org/designer/
You'll need a username and password to login. Use these:
username: designer
password: designer123
Link for login at bottom.
Because I save the files in UTF-8 I don't manually need to do any conversion in the text, when writing it. My guess is that Blogger and TypePad is done the same way, the posts that the user write is saved as UTF-8 and since that is a unicod, all kind of characters and languages can be used.
I guess that is the theory that now needs to be tested. My suspicion
is the opposite of yours - they are using something other than UTF-8,
which is why garbage characters appear if you copy something from them
and paste it into a web page that is using UTF-8. lk******@geocit ies.com (lawrence) wrote in message news:<da******* *************** ****@posting.go ogle.com>... Arne <ar**@luras.n u> wrote in message news:<%9******* **********@news b.telia.net>... Most people use Microsoft Internet Explorer to build pages on their weblogs. That is, they log in and type some text in a TEXTAREA and hit "Post" and then there words appear as a new page on the web.
I would have thought that bloggers would be the sort to be clueful
enough to use decent browsers, like Mozilla, instead.
--
Dan
*Daniel R. Tobias* skrev 2004-10-05 22:49: lk******@geocit ies.com (lawrence) wrote in message news:<da******* *************** ****@posting.go ogle.com>... Arne <ar**@luras.n u> wrote in message news:<%9******* **********@news b.telia.net>... Most people use Microsoft Internet Explorer to build pages on their weblogs. That is, they log in and type some text in a TEXTAREA and hit "Post" and then there words appear as a new page on the web.
I would have thought that bloggers would be the sort to be clueful enough to use decent browsers, like Mozilla, instead.
Ok. I see noe what Lawrence's problem is. The browser used don't matter
here. When testing the blog I used som words from my native language
(Swedish) and writed this:
The problem with charset UTF-8 on pages with forms for e.g. guestbooks,
formmail and bloggs is that writing in a non-english language can give
garbage characters from the letters that is not represented in the
english language. That's because what is writed in the text box don't
get encoded, as text done with HTML editors does.
So the best may be to use an other charset (is ISO-8859-1 the best?) for
pages with forms and textbox. ISO-8859-1 cover a lot of languages with
"strange" characters, but far from all, so the problem may not totally
be solved.
You can write the message in a separate software (sutch as Notebook) and
then encode foreign letters to entities. As an example the letter "å"
(latin small letter a with ring above) to å but then, will the
å look like "å" å or on the page after posting?
--
/Arne
"Arne" <ar**@luras.n u> a écrit dans le message de
news:4t******** *************@n ewsc.telia.net The problem with charset UTF-8 on pages with forms for e.g. guestbooks, formmail and bloggs is that writing in a non-english language can give garbage characters from the letters that is not represented in the english language. That's because what is writed in the text box don't get encoded, as text done with HTML editors does.
I really can't understand your post. A server that sends a form to a client
with the appropriate charset headers should get in return all the users
input encoded in that charset. If the form is sent with a UTF-8 header, you
should get all the characters encoded in UTF-8. And so user could input any
character included in Unicode.
On Wed, 6 Oct 2004, Pierre Goiffon wrote: "Arne" <ar**@luras.n u> a écrit dans le message de news:4t******** *************@n ewsc.telia.net The problem with charset UTF-8 on pages with forms for e.g. guestbooks, formmail and bloggs is that writing in a non-english language can give garbage characters from the letters that is not represented in the english language. That's because what is writed in the text box don't get encoded, as text done with HTML editors does. I really can't understand your post. A server that sends a form to a client with the appropriate charset headers should get in return all the users input encoded in that charset.
"should" sounds right, but it isn't always going to work, depending on
all kinds of browser bugs and oddities, to say nothing of the
uncertainty of what should happen with method GET (which /officially/
only supports us-ascii).
If the form is sent with a UTF-8 header, you should get all the characters encoded in UTF-8. And so user could input any character included in Unicode.
On the other hand, the combination of user errors, browser bugs and
plain malice means that your server *could* get presented with all
kinds of rubbish: you might not be able to do anything useful with it,
but you better program defensively to ensure it won't do you any harm.
(E.g you better validate any byte-sequences that are supposed to be
utf-8 to make sure they really are - the unicode spec effectively
mandates such validation, and failure to do so could be rated as a
security exposure).
I haven't worked this page over in a while, but it gives a general
flavour of what I found, reviewed against what the specifications say
(and - also important - what they /don't/ say): http://ppewww.ph.gla.ac.uk/~flavell/...form-i18n.html
h.t.h
On Wed, 6 Oct 2004, Pierre Goiffon wrote: A server that sends a form to a client with the appropriate charset headers should get in return all the users input encoded in that charset. If the form is sent with a UTF-8 header, you should get all the characters encoded in UTF-8. And so user could input any character included in Unicode.
Try
<http://google.com/search?q=%EA%E5 %F1%DC%F4%E9%EF .%ED&ie=ISO-8859-7&oe=UTF-8>
with Netscape 4.x.
--
Top-posting.
What's the most irritating thing on Usenet? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: EU citizen |
last post by:
Do web pages have to be created in unicode in order to use UTF-8 encoding?
If so, can anyone name a free application which I can use under Windows 98
to create web pages?
|
by: Haines Brown |
last post by:
I'm having trouble finding the character entity for the French
abbreviation for "number" (capital N followed by a small supercript
o, period).
My references are not listing it. Where would I find an answer to this
question (don't find it in the W3C_char_entities document).
--
Haines Brown
brownh@hartford-hwp.com
|
by: Philipp Lenssen |
last post by:
How do I load and save a UTF-8 document in XML in ASP/VBS?
Well, the loading* is not the problem actually -- the file is in UTF-8,
and understood correctly -- but once saved, the UTF-8 is replaced by
what seems to be iso-8859-1 (which Flash doesn't understand, but that's
another problem). Any help greatly appreciated.
* Something like this...
|
by: stevelooking41 |
last post by:
Can someone explain why I don't seem unable to use document.write to
produce a valid UTF-8 none breaking space sequence (Hex: C2A0) ?
I've tried everyway I've been able to find to tell the browser I'm
trying to print UTF-8 and still no luck. I'd like the first 2 tries to
match the second two tries as far as output.
<HTML>
<meta http-equiv="Content-Type" content="application/x-script;
charset=UTF-8">
|
by: jmgonet |
last post by:
Hello everybody,
I'm having troubles loading a Xml string encoded in UTF-8.
If I try this code:
------------------------------
XmlDocument doc=new XmlDocument();
String s="<?xml version=\"1.0\" encoding=\"utf-8\"
standalone=\"yes\"?><a>Schönbühl</a>";
doc.LoadXml(s);
doc.Save("d:\\temp\\test.xml");
| |
by: David Bertoni |
last post by:
Hi all,
I'm trying to resolve what appears to me an inconsistency in the XML 1.0
recommendation involving entities encoding in UTF-16 and the requirement
for a byte order mark.
Section 4.3.3 has the following text:
http://www.w3.org/TR/REC-xml/#charencoding
|
by: Jimmy Shaw |
last post by:
Hi everybody,
Is there any SIMPLE way to convert from UTF-16 to UTF-32? I may be
mixed up, but is it possible that all UTF-16 "code points" that are 16
bits long appear just the same in UTF-32, but with zero padding and
hence no real conversion is necessary?
If I am completely wrong and some intricate conversion operation needs
to take place, can anyone give me some primer on the subject?
|
by: Allan Ebdrup |
last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc
chineese chars.
My Ajax webapplication runs in a HTML page that is UTF-8 Encoded.
I copy and paste some chineese chars from another HTML page viewed in IE7,
that is also UTF-8 encoded (search for "china" on google.com). I paste the
chineese chars into a content editable div.
My Ajax webservice compiles an XML where the data from the content editable
div is...
|
by: Bjoern Hoehrmann |
last post by:
Hi,
For a free software project, I had to write a routine that, given a
Unicode scalar value U+0000 - U+10FFFF, returns an integer that holds
the UTF-8 encoded form of it, for example, U+00F6 becomes 0x0000C3B6.
I came up with the following. I am looking for a more elegant solution,
that is, roughly, faster, shorter, more readable, ... while producing
the same ouput for the cited range.
unsigned int
|
by: =?ISO-8859-2?Q?Boris_Du=B9ek?= |
last post by:
Hi,
I have an API that returns UTF-8 encoded strings. I have a utf8 codevt
facet available to do the conversion from UTF-8 to wchar_t encoding
defined by the platform. I have no trouble converting when a UTF-8
encoded string comes from file - I just create a std::wifstream and
imbue it with a locale that uses the utf-8 facet for
std::locale::ctype. Then I just use operator>to get wstring properly
decoded from UTF-8. I thought I could...
|
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...
| |
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,...
|
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |