I've decided to learn Groovy. I figure I should learn a new language each year, and Groovy, being a Java derivative and combined with my smattering of Ruby...
The primary challenge to learning a new language isn't the programmer, it's workplace. It's like the retarded article I saw on ServerJavaSideLobby, asking "Why...
I've been looking at groovy as well (also with 'scripting in Java') and I quite like it. At first when I heard about the JDK 6 scripting stuff, I didn't see it...
Groovy feels very natural to me, so I'm inclined to give that more attention at this point. Trying to find a place to use it anger, at my job, has met with...
I am trying to parse some XML files coming in as a daily feed from a third part vendor. The XML files are coming in marked as encoding="UTF-8". The SAX parser...
Are you certain that the payload actually is UTF-8 encoded? ISO-2022-JP is much more common in Japan at least in email applications. SHIFT-JIS is as also used...
Seem to be two possibilities: file is not really UTF-8, as Rod suggested; whatever you are using to see the characters as ? is not running in Japanese locale. ...
Heh. That's a great point -- and regardless of locale, you'll need the proper Asian font sets installed. That's a common problem that produces the ??? symptom....
I am seeing the Kanji in the incoming file when I open it up in a text editor. The SAX parser is not reading the Kanji properly though - it is translating it...
That sounds like a bad encoding, then. The editor recognizes the Kanji character set, whatever it is. It's possible to guess a wide variety of encodings;...
I have access to the Kanji content. The problem is after parsing it converts to ???. When I look at the characters debugging into the sax content handler, the...
Not to state something that might be obvious, but isn't Kanji one of th double byte char sets? And doesn't that require UTF-16? Admittedly, I do not do much ...
... Nope, UTF-8 can represent Kanji just fine. IIRC Java by default represents strings as UTF-16 but UTF-8 can represent multibyte characters. It just uses,...
Problem solved. The problem was that I was using a FileWriter to output the file, which assumes some default encoding. I switched it to an OutputStreamWriter...
Since the list has been so quiet.... The Washington Post's Mensa Invitational once again asked readers to take any word from the dictionary, alter it by...
Hope they'll take the money to buy a few more servers. In general I like there services. But don't think I would use it for production. Have a few demo sites...
... I don't know that it is reasonable to expect stellar performance from complex applications on a shared server hosting plan. If I were going to run a "real"...
... Agreed. And that's what I use it for. And for the price I don't expect much more. The phrase with the new servers has been meant as a joke. I have my...
Does anyone know anything about setting soTimeout on server sockets not working under HP-UX? The main loop of my proxy server uses the timeout to check to see...
... well, i don't know about that. I was surprised to see an aussie company i never heard of in the top ten. if you go to their website, they look like domain...
Like most of these hosting companies they vastly oversell which is why you have to go with one of the smaller shops that charges more (or pay more at a place...
Is there some reason on a J2EE-compliant app server (WebLogic 9.2 in this case) you'd be storing a db Connection from the app server's datasoure(s) in a...
Hi Jason (assuming SSB == STATELESS Session Bean, not STATEFUL Session Bean - it's a bad acronym) The datasource instances are pooled, the bean instances are...