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 ]
posted 12 years ago
Let's try moving this to the ummmmmm . . . XML forum and see if they can help.
"JavaRanch, where the deer and the Certified play" - David O'Meara