This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Certification
»
Web Component Certification (SCWCD/OCPJWCD)
Author
Why does request.getCharacterEncoding() return null?
Leon Omk
Ranch Hand
Joined: Aug 17, 2010
Posts: 72
I like...
posted
Nov 21, 2011 21:39:57
0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> ... <form action="TestServletBasic" method="post"> <input type="submit" value="submit" /> ... <ul> <li>${pageContext.request.characterEncoding}</li> <li>${header['Accept-Charset']}</li> </ul>
Result is:
UTF-8,*;q=0.5
So, request.getCharacterEncoding() is null? Why? Why not "UTF-8"?
OK, so that other guy knows Java better than I do, but I bet he can't speak Wuhanese(a Chinese Dialect) like me.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
14
I like...
posted
Nov 21, 2011 22:05:12
0
Please do not post the same question more than once.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Why does request.getCharacterEncoding() return null?
Similar Threads
Question on how to implement multi level menu (navigation bar) in html/css
Simple MooTools $$ Selector Problem
set values in a table from other
Character set encoding issue
anchor links not workikng in Firefox after resize
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter