371 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
Latest 7 Posts
"Error cleaning up agent threads" - a never ending story
Thu, Apr 12th 2012 129
Problems with charset in 8.5.1 environment
Thu, Jul 21st 2011 95
DIIOP?? No more...
Wed, Apr 6th 2011 43
Lotus Notes and chart in client: great stuff!!
Wed, Nov 3rd 2010 112
Forms with the same alias is *still* a bad practice (Xpages Bug)
Wed, Oct 27th 2010 71
Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK
Wed, Oct 13th 2010 28
"Received" field is big trouble for Lotusscript..
Fri, Sep 10th 2010 77
Top 10
"Error cleaning up agent threads" - a never ending story
Thu, Apr 12th 2012 129
Lotus Notes and chart in client: great stuff!!
Wed, Nov 3rd 2010 112
Problems with charset in 8.5.1 environment
Thu, Jul 21st 2011 95
"Received" field is big trouble for Lotusscript..
Fri, Sep 10th 2010 77
Forms with the same alias is *still* a bad practice (Xpages Bug)
Wed, Oct 27th 2010 71
"Received" field is big trouble for Lotusscript..
Fri, Sep 10th 2010 61
New ideas from RedTurtle....
Mon, Aug 30th 2010 60
DIIOP?? No more...
Wed, Apr 6th 2011 43
Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK
Wed, Oct 13th 2010 28


Problems with charset in 8.5.1 environment
andrea    

In this scenario, i've experienced some problems with UTF-8 charset in strings. In 6.5 environment everithing works fine.

This is my code in a Java agent:

org.w3c.dom.Document docXML = attachSegnatura.parseXML(false);
XSLTResultTarget out = new XSLTResultTarget();
out.setFileName(path + "SegnaturaRT.xml");
attachSegnatura.transformXML(xsl, out);
DOMParser parser = new DOMParser();
parser.parse(path + "SegnaturaRT.xml");
org.w3c.dom.Document docRT = ((DOMParser)parser).getDocument();

 

xsl is an EmbeddedObject that contains xsl file.
 
In this case, if XML contains characters like "ยง", these are wrongly rendered.
My solution was:
 
tFactory = TransformerFactory.newInstance();
StreamSource xslSS = new StreamSource(pathFile+"Segnatura.xsl");
StreamSource xslRT= new StreamSource(pathFile + "Segnatura.xml");
FileOutputStream fos = new FileOutputStream(pathFile + "SegnaturaRT.xml");
transformer = tFactory.newTransformer(xslSS);
transformer.transform(xslRT, new StreamResult(fos));
transformer.reset();
fos.close();
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
docRT = dBuilder.parse(new File(pathFile + "SegnaturaRT.xml"));

 

Anybody experienced something like this?

 


---------------------
http://blog.redturtle.it/redturtle-blog/problems-with-charset-in-8.5.1-environment
Jul 21, 2011
96 hits



Recent Blog Posts
129


"Error cleaning up agent threads" - a never ending story
Thu, Apr 12th 2012 6:08a   RedTurtle Technology
There are thousands of posts on Lotus Domino forum about this problem: "Error cleaning up agent threads". I ran into a similar problem using a Java agent. I state that this agent has been inherited from another developer ;-) so it was not easy for me to initially understand what the problem could be. In any case, every time the agent ended, I had the above error to the log. In truth, none of the posts that I've seen has been helpful, until, by inspecting the code carefully and isolating th [read] Keywords: agent domino lotus java
96


Problems with charset in 8.5.1 environment
Thu, Jul 21st 2011 6:09a   RedTurtle Technology
In this scenario, i've experienced some problems with UTF-8 charset in strings. In 6.5 environment everithing works fine. This is my code in a Java agent: org.w3c.dom.Document docXML = attachSegnatura.parseXML(false); XSLTResultTarget out = new XSLTResultTarget(); out.setFileName(path + "SegnaturaRT.xml"); attachSegnatura.transformXML(xsl, out); DOMParser parser = new DOMParser(); parser.parse(path + "SegnaturaRT.xml"); org.w3c.dom.Document docRT = ((DOMParser)parser).getDocument(); [read] Keywords: agent java xml
43


DIIOP?? No more...
Wed, Apr 6th 2011 6:08a   RedTurtle Technology
[read] Keywords:
112


Lotus Notes and chart in client: great stuff!!
Wed, Nov 3rd 2010 11:30a   RedTurtle Technology
A way to render charts in Lotus Notes Client through Google Charts [read] Keywords: lotus notes notes client google
71


Forms with the same alias is *still* a bad practice (Xpages Bug)
Wed, Oct 27th 2010 3:42a   RedTurtle Technology
Probably a bug found in XPages 8.5.2 engine [read] Keywords: xpages bug
28


Oracle and IBM Collaborate to Accelerate Java Innovation Through OpenJDK
Wed, Oct 13th 2010 3:25a   RedTurtle Technology
[read] Keywords: ibm java oracle




77


"Received" field is big trouble for Lotusscript..
Fri, Sep 10th 2010 8:29a   RedTurtle Technology
A bit of background when SMTP mail headers come in, they create multiple 'received' fields in mail document [read] Keywords: lotusscript smtp
61


"Received" field is big trouble for Lotusscript..
Fri, Sep 10th 2010 5:27a   RedTurtle Technology
A bit of background when SMTP mail headers come in, they create multiple 'received' fields in mail document [read] Keywords: lotusscript smtp
60


New ideas from RedTurtle....
Mon, Aug 30th 2010 12:00p   RedTurtle Technology
RedTurtle Technology seeks to contribute to improving Notes [read] Keywords: notes




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - FAQ - Mobile Edition