Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: UTF-8: Trying to make sense of form input

by ikegami (Pope)
on Sep 17, 2009 at 21:35 UTC ( #795984=note: print w/replies, xml ) Need Help??


in reply to Re: UTF-8: Trying to make sense of form input
in thread UTF-8: Trying to make sense of form input

I don't think it supports UTF8.

I think you mean UTF-8. UTF-8 is a character encoding. It's a means of converting characters to and from bytes for use in mediums that don't have a concept of characters.

HTML::Entities works with characters, not bytes that were characters before they were encoded. It doesn't know anything of any character encoding (like UTF-8) since it only works with characters.

The HTML portions you pass to decode_entities must first be decoded from bytes into characters (based on the encoding specified in the Content-Type header).

Similarly, the HTML portions you receive from encode_entities must then be encoded from characters into bytes to characters (based on the encoding specified in the Content-Type header).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://795984]
help
Chatterbox?
[marioroy]: Discipulus Hubris, that's not me :( :(, I do not know the reason, but was inspired years ago to do MCE. Back then made a promise that I would hang in there no matter the difficulties or hurdles along the way. This is the journey that is almost completed
[choroba]: software is never completed
[choroba]: becuase the hardware always changes beneath it, at least
[Discipulus]: yes i think I know a bit about you: if I would had the competence and the will to accomplish something like MCE.. i'd be running here and there with flags and t-shirt about.. ;=)
Lady_Aleena rolls over on the sofa, pulling a light blanket over her, and falls to sleep.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-05-26 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?