Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 3rd, 2004, 07:32 PM
Registered User
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to bservi
Default charset encoding

I have a VB program that takes an XML document and transforms it using XSLT into JSP and sends it via an HTTP Post to a java servlet running on a web server within Websphere. I use a VB xmlhttpServer object to do the post. I do not specify a charset in the content header. My code has worked great for a long time as all the xml entries were in English. The JSP coming out is in a well-formed XML format (using jsp:directive, etc.) I now have users in German.
Initially they needed to send lowercase umlaut characters. They always showed up fine in the XML and the output JSP. The output JSP, however, would run in a browser and I needed to specify a content-type on the jsp:directive.page tag with a charset=UTF-8 and the lowercase German umlaut characters displayed fine.
Now, uppercase German umlauts have been added and they are not making it thru the HTTP post correctly. They look fine in the XML and even in the output JSP that is written to a log (not sent thru http). However, once the JSP is sent out over the HTTP via a POST, they display as funny characters on the web server. How do I get them to display correctly? I know it is a matter of proper encoding. Whould it be on the HTTP post, the XML file, the XSLT file, or the output JSP? SHould I use UTF-16, UTF-8, or ISO-8859-1? How come lowercase umlauts worked and not uppercase? ANy help appreciated!
Thanks, Brian

Similar Threads
Thread Thread Starter Forum Replies Last Post
page.response.charset manoj.aggarwal ASP.NET 2.0 Professional 0 August 1st, 2007 03:55 AM
incorrect charset when reading the jsp form m.walter@fue-gmbh.com Struts 0 October 9th, 2006 09:59 AM
charset question Edward King Pro JSP 1 August 8th, 2005 03:09 PM
change charset vincentc Classic ASP Basics 1 May 31st, 2005 04:00 AM
problem in mysql php charset yoord BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 11th, 2005 03:40 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.