This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

encoding problems  RSS feed

 
Janis Olex
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi here is code my JSP which does not work!
------------------
<%response.setContentType("text/html;charset=windows-1257");%>
Autentifik�cija veiksm�ga<br>
Neveiksm�ga autentifik�cija
-----------------------
problem is that the encoding is not set, it somehow messes with ISO-8859-1 which is set as default for the page and after that "???" are shown instead of spec letters!
Question is how to "cheat" default charset if I want to set it dynamically!
That would be some magic with printWriter, but I have no success
My web app triest to get encoding from client, then switches dynamically to corresponding resource bundle and uses specified charset!
I am not able to set it dynamically into <%@ page pageEncoding %> parameter
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!