It's all about the answers!

Ask a question

How to avoid Unmappable Character Exception when logging change set comment with special characters?


Arne Bister (2.6k12832) | asked Apr 11 '14, 4:38 p.m.
JAZZ DEVELOPER
Jazzers,

I have brought together
java.util.logging.Logger Log = Logger.getLogger(MyClass.class.getName());
with
IChangeSet changeSet;
by means of:
String comment = changeSet.getComment();
Log.info (comment);
only to be greeted with java.nio.charset.UnmappableCharacterException once the change set comment contains e.g. ä ö ü ß and the like. This holds true for RTC 4.0.5 and 4.0.6
I understand that this can be mitigated by introducing Resource Bundle. Or avoid java.util.logging and go with log4j? Does anybody have any details how exactly to solve the issue of logging special characters in change set comments?

Thanks for sharing any ideas and pointers.
- Arne

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.