|
Larry wrote:
I keep thinking I have my head on straight regarding using java objects in RPG, then I confuse myself again. Perhaps you can help? In the following program I am playing with URLEncode. I had the program working fine, until I wanted to convert back the new encoded URL string into AS400 characters. I have my string "outstring" and all I need to do is execute "outstring.getBytes()". I tried prototyping getBytes, but keep getting an error (shown in the text below). How do I call getBytes on my nice string?
You didn't say what error you are getting. I'm just curious, shouldn't the utfstring be one of the parameters to the encode() method? > utfstring = makestring('UTF-8'); > instring = makestring('The String @foo-bar'); > outstring = encode(instring);
As an Amazon Associate we earn from qualifying purchases.
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.