/    Sign up×
Community /Pin to ProfileBookmark

Accented letters

Hello do you knowow to accept accented letters such as umlauts or staves into form inputs or are they accepted automatically

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@scragarOct 27.2007 — everything is accepted unless you use some validation to block it, although depending on your charset some characters could come out weird if you echo them.
Copy linkTweet thisAlerts:
@NogDogOct 27.2007 — By default the browser should limit itself to the character set specified in the "Content-Type" HTTP header or meta tag. You can override that default by specifying an [url=http://www.w3.org/TR/html4/interact/forms.html#adef-accept-charset]accept-charset[/url] attribute for your form tag. Of course, since that is all client-driven, you can not depend on it 100%, so if there are certain characters you do not want to allow, it is still your server-side script's responsibility to validate the input and either reject the input or filter out illegal characters (such as with preg_replace()) if any unwanted characters are in the input.
Copy linkTweet thisAlerts:
@JavajoobauthorOct 27.2007 — Well yes it gets a bit messy when validation comes in and you want to allow letters and certain other characters. And with this charset you can specify personally which letters you want to allow into your form input (client side at least)?
×

Success!

Help @Javajoob spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...