Saturday, August 19, 2006

 

java.io.UnsupportedEncodingException in JavaMail API

Today I discovered that java has a limited way of handling encodings in java mail API and I guess that goes for working with text in general.

my problem was that during call to POP3Message.getContent() or call to Part.getContent() java.io.UnsupportedEncodingException was thrown.

According to JavaMail FAQ answer you should catch UnsupportedEncodingException and handle it by "choose a charset in some heruistic manner".

One of the encodings I had a problem with was "x-mac-cyrrilic". It actually was located in $JRE/lib/charsets.jar as "x-MacCyrillic". I discovered it looking at supproted encodings list located at http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html for JDK15.

I wonder if all encodings are there and what to do if there is a need to handle message with encodings that is not supported.

For nio there is a java.nio.charset.spi.CharsetProvider class that could be used.

Friday, August 18, 2006

 

Spring IDE experience

Today I decided to install Spring IDE.

I point my eclipse update manager to http://springide.org/updatesite_dev and install went smothly.

It took a little time to figure out that how to use it, but after reading manual everyting was worked ot just fine. ( or course I am too lazy to read it first ).

I consider it pretty useful for creating configuration files. Most useful feature is validation - it found couple of unexpected typos in context files.

Overall install went pretty smoothly and it added to overwall process.

 

Flex RealWord seminar

Attended Flex RealWorld seminar.

Primarely there were 2 interestng presentations:
- DaoFlex by http://www.faratasystems.com presented by Victor Rasputinis and Yakov Fain. This is very cool code generator allows automate tidious tasks of mass code creation. And even though the idea is not new it is still very actual in real life projects. Unlike other toold it allows you to call Database and generate code based on metadata it can grab during DB call.

- Mapping mashups presented by Mansour Raad from ESRI. This application shows power of applications and on the other end represent cutting edge technology. Even though thereare many other apps, but Flex power is clearly shown.

I got surprised how many people were using ColdFusion. I had an impression that this product is dead, but apparently it is not.

Thursday, August 17, 2006

 

Blog created

Finally I put my thoughts together and setup A B-L-O-G

This page is powered by Blogger. Isn't yours?