But what happens when javascript grabs that input

Could you be more precise? A function that reads from the socket should return bytes. A function that returns the text of an XML node should return decoded chars. It all depends on the interface.

It's a question that's easily answered by trying.

when a user enters data into a form

Just a quicky to hold you until someone comes along with more info...

This is very rough area. IIRC, the agent is suppose to encode the data using the same encoding as the page on which the form resides. However, I remember having a discussion about how it isn't well supported and/or there are issues with the approach.

Of particular interest is that some browsers (possibly all the major ones) will populate a specific field with the encoding when the field is provided in the form. I can't remember what the field is called.


In reply to Re: [not perl] unicode/utf8 in browsers and OS's - where does conversion happen? by ikegami
in thread [not perl] unicode/utf8 in browsers and OS's - where does conversion happen? by danmcb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.