Dealing with character sets

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thom McGrath

    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=ut f-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_dec ode, 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

  • John Dunlop

    #2
    Re: Dealing with character sets

    Thom McGrath wrote:
    [color=blue]
    > 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.[/color]

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



    --
    Jock

    Comment

    • Thom McGrath

      #3
      Re: Dealing with character sets

      On 2004-02-24 05:36:49 -0500, John Dunlop <john+usenet@jo hndunlop.info> said:
      [color=blue]
      > Thom McGrath wrote:
      >[color=green]
      >> 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.[/color]
      >
      > 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[/color]


      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

      Comment

      • Chung Leong

        #4
        Re: Dealing with character sets


        Uzytkownik "Thom McGrath" <thom@thezaz.co m> napisal w wiadomosci
        news:2004022321 401116807%thom@ thezazcom...[color=blue]
        > 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=ut f-8">[/color]

        Yes. The data coming in will have the same encoding as the page that does
        the post.


        Comment

        Working...