• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Character Encoding & App Servers

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm struggling a bit with character encoding/app servers/and the affect of character encoding when bits are put to the wire.
Basically, let's assume that at startup, I pass my app server the system property "file.encoding" with value = "UTF8".
A) Should this have any affect on the Content-type header returned by the app-server, ie, indiciating that the charset is of type "UTF8".
B) If one is working with XML and isn't certain of the characters that will be represented in the document, is it safe to assume that all characters will be UTF8 compliant because the VM is only working with characters that are valid in UTF8?
C) Let's also assume that the app server is sitting behind a web server who has a blanket charset flag of "IS0-8859-1". I suppose that consuming clients will then assume that the data is of type "ISO-8859-1" and parse the bits on the wire accordingly? If that's the case, and UTF-8 and ISO use different encoding at the bit level -- you'd get all manner of strange funk, yes?
Thanks for any clarification!
Cory
[ August 22, 2003: Message edited by: Cory Wilkerson ]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's try moving this to the ummmmmm . . . XML forum and see if they can help.
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic