473,320 Members | 1,958 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,320 software developers and data experts.

Dealing with character sets

I have a text area that people should type in (duh) which will later be
displayed for other users via HTML. I've taken care of the HTML aspect
in a pretty cool way, but I worry about character sets now.

Everything works for me, but I use UTF-8. When the form is submitted,
how do I know what character set the data is coming in? I need to know
this to perform htmlentities on the data and have it work properly.

All my pages are defined as UTF-8. Would this mean that the data coming
from the form also be UTF-8?
<meta http-equiv="content-type" content="text/html;charset=utf-8">

Finally, when I need to put the content back into the textarea for
editing, do I need to use the original character set with
html_entity_decode, or can I have it output in a new character set?

I've dealt with character sets in REALbasic before, and have a good
grasp of what they are and such. But I have no experience with
third-party browsers and all that jazz.

Basically, what do I do?

--
- Thom McGrath
Head of the ZeeTox Project and lead programmer for The ZAZ
Contact me with iChat or AOL Instant Messenger: zazTekcor

Jul 17 '05 #1
3 1987
Thom McGrath wrote:
I've dealt with character sets in REALbasic before, and have a good
grasp of what they are and such. But I have no experience with
third-party browsers and all that jazz.


That's a huge and complicated arena, even for someone like yourself
who's covered the groundwork. Have fun!

http://ppewww.ph.gla.ac.uk/~flavell/...form-i18n.html

--
Jock
Jul 17 '05 #2
On 2004-02-24 05:36:49 -0500, John Dunlop <jo*********@johndunlop.info> said:
Thom McGrath wrote:
I've dealt with character sets in REALbasic before, and have a good
grasp of what they are and such. But I have no experience with
third-party browsers and all that jazz.


That's a huge and complicated arena, even for someone like yourself
who's covered the groundwork. Have fun!

http://ppewww.ph.gla.ac.uk/~flavell/...form-i18n.html

Don't I know it! I love the web, but sometimes I hate it so much.

--
- Thom McGrath
Head of the ZeeTox Project and lead programmer for The ZAZ
Contact me with iChat or AOL Instant Messenger: zazTekcor

Jul 17 '05 #3

Uzytkownik "Thom McGrath" <th**@thezaz.com> napisal w wiadomosci
news:2004022321401116807%thom@thezazcom...
Everything works for me, but I use UTF-8. When the form is submitted,
how do I know what character set the data is coming in? I need to know
this to perform htmlentities on the data and have it work properly.

All my pages are defined as UTF-8. Would this mean that the data coming
from the form also be UTF-8?
<meta http-equiv="content-type" content="text/html;charset=utf-8">


Yes. The data coming in will have the same encoding as the page that does
the post.
Jul 17 '05 #4

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

Similar topics

0
by: Thiko | last post by:
Hi According to the official mysql manual: http://www.mysql.com/doc/en/Charset-SHOW-CHARSET.html The syntax to show all available character sets is the SHOW CHARACTER SET command. It takes...
19
by: Ian | last post by:
I'm using the following meta tag with my documents: <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> and yet using character entities like &rsquo; and &mdash; It...
4
by: siliconmike | last post by:
All I know is that there are 8 bit numbers from 0 to 255 mapped to characters like A, B, C, D and some strange looking ones (like the ones used to make boxes in old PC text modes) all these being...
37
by: chandy | last post by:
Hi, I have an Html document that declares that it uses the utf-8 character set. As this document is editable via a web interface I need to make sure than high-ascii characters that may be...
21
by: aegis | last post by:
7.4#1 states The header <ctype.h> declares several functions useful for classifying and mapping characters.166) In all cases the argument is an int, the value of which shall be representable as an...
16
by: lovecreatesbeauty | last post by:
/* When should we worry about the unwanted chars in input stream? Can we predicate this kind of behavior and prevent it before debugging and testing? What's the guideline for dealing with it? ...
6
by: John Henry | last post by:
Hi list, If I have a bunch of sets: a = set((1, 2, 3)) b = set((2, 3)) c = set((1, 3)) ..... What's the cleanest way to say:
9
by: jraul | last post by:
1) Am I correct that C++ does not have a defined character set? In particular, a platform might not use the ASCII character set? 2) C++ supports wchar_t types. But again, this has no defined...
3
by: sophie_newbie | last post by:
Hi, I want to store python text strings that characters like "é" "Č" in a mysql varchar text field. Now my problem is that mysql does not seem to accept these characters. I'm wondering if there...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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)...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.