Re: [U2] UniObjects for Java on Ubuntu anyone?
Jeff, We use Uniobjects for Java on Ubuntu 7.1 (Gutsy Gibbon) to access our MRP system (Unidata 7.1). I use a tool called the JavaBridge to provide data access from PHP. In our case, Uniobjects is only being used to handle sessions and calls to UniBasic subroutines. Results are returned in strings with TAB delimited fields and LF dlimited records, so I don't get into any issues with the marks. Also, this makes it easy to split the strings into records and fields in PHP. This pushes the data extraction logic to the Unidata server and has worked out well. Here is the LANG variable we are using. r...@u2web:~# echo $LANG en_US.UTF-8 There was a gentleman from North Carolina (I think) who is working in the same environment and would be more knowledgable than I am. He works in education, but I can't recall his name at the moment. Jeff Powell said: The LANG variable issue takes a new twist with Ubuntu Server 8.10. Neither LANG=C (IBM recommended) or LANG=en_US.iso885915 (must use for RedHat) will work. The value marks are wrongly used as field marks. And in case you're wondering no, LANG=en_US.UTF-8 also does not work. Has anyone made UniObjects for java work on Ubuntu? Charles Shaffer Senior Analyst NTN-Bower Corporation --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniObjects for Java on Ubuntu anyone?
That did it. Thanks. On Fri, 2009-02-13 at 16:42 -0800, Richard Nuckolls wrote: I have not used Ubuntu, but try optioning Java with - Dfile.encoding=iso8859-1 If you are were tomcat, this would go in the CATALINA_OPTS environment variable. (setenv.sh) -Rick On Feb 13, 2009, at 2:34 PM, Jeff Powell wrote: The LANG variable issue takes a new twist with Ubuntu Server 8.10. Neither LANG=C (IBM recommended) or LANG=en_US.iso885915 (must use for RedHat) will work. The value marks are wrongly used as field marks. And in case you're wondering no, LANG=en_US.UTF-8 also does not work. Has anyone made UniObjects for java work on Ubuntu? Thanks. Jeff --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniObjects for Java on Ubuntu anyone?
There is rather a significant oversight in UOJ: it fails to specify the encoding when it translates bytes to Java characters, and vice versa. Beware too, of the 32 file limit in UOJ. There are a number of solutions to this problem, but you should probably start by creating your own interfaces to access UOJ. Our Session object caches files, and has methods for read, write, etc. eg. String s = session.read(filename, key). The opening of the file is implicit in the method. -Rick On Feb 16, 2009, at 9:14 AM, Jeff Powell j...@powellclan.com wrote: That did it. Thanks. On Fri, 2009-02-13 at 16:42 -0800, Richard Nuckolls wrote: I have not used Ubuntu, but try optioning Java with - Dfile.encoding=iso8859-1 If you are using tomcat, this would go in the CATALINA_OPTS environment variable. (setenv.sh) -Rick On Feb 13, 2009, at 2:34 PM, Jeff Powell wrote: The LANG variable issue takes a new twist with Ubuntu Server 8.10. Neither LANG=C (IBM recommended) or LANG=en_US.iso885915 (must use for RedHat) will work. The value marks are wrongly used as field marks. And in case you're wondering no, LANG=en_US.UTF-8 also does not work. Has anyone made UniObjects for java work on Ubuntu? Thanks. Jeff --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] UniObjects for Java on Ubuntu anyone?
The LANG variable issue takes a new twist with Ubuntu Server 8.10. Neither LANG=C (IBM recommended) or LANG=en_US.iso885915 (must use for RedHat) will work. The value marks are wrongly used as field marks. And in case you're wondering no, LANG=en_US.UTF-8 also does not work. Has anyone made UniObjects for java work on Ubuntu? Thanks. Jeff --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniObjects for Java on Ubuntu anyone?
I have not used Ubuntu, but try optioning Java with - Dfile.encoding=iso8859-1 If you are were tomcat, this would go in the CATALINA_OPTS environment variable. (setenv.sh) -Rick On Feb 13, 2009, at 2:34 PM, Jeff Powell wrote: The LANG variable issue takes a new twist with Ubuntu Server 8.10. Neither LANG=C (IBM recommended) or LANG=en_US.iso885915 (must use for RedHat) will work. The value marks are wrongly used as field marks. And in case you're wondering no, LANG=en_US.UTF-8 also does not work. Has anyone made UniObjects for java work on Ubuntu? Thanks. Jeff --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/