× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Look to see if the file was translated ascii to ebcdic when it was moved to the iSeries. If you put it there with FTP, for example, the default is to translate if FTP is not in bin mode.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Federico Vela
Sent: Friday, July 15, 2011 9:27 AM
To: java400-l@xxxxxxxxxxxx
Subject: iSeries Character Encoding and Java

Hello,

I have a text file processing software built with Java 6 on linux and windows machines with DB2 LUW. I am testing it on an iSeries machine
(V6.1) with its instance of DB2.

When processing an (ISO-8859) text file (whose characters are presumably converted to UTF-8 upon reading it in Java), that processes successfully under linux and windows, I get a sun.io.MalformedInputException.

It seems this exception happens because an incoming character cannot be converted to UTF-8. However since the only thing that changes is the operating system to System i, I am guessing it has something to do with the System value of the CCSID which is currently set to 65535, or perhaps some kind of environment variable for the JVM.

Ok, thanks for reading this far.

My question is, in your opinion, might the CCSID value have anything to do with the problem I am experiencing?

Thanks!!!
--
Federico Vela
Java Software Manager
PaySett Corporation

fvela@xxxxxxxxxxx
+57 1 544 3564

DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Unless you have express written permission from PaySett Corporation you are not allowed to disseminate, distribute or copy this e-mail outside of the intended organization. If you are not the intended recipient/organization you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.


--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.