|
Hello Matt, The iconv function is not the same, as what I'm trying to do. I 'm looking for something like CVTHC and CVTCH, but then for unicode in stead of hexadecimal. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Haas, Matt Sent: maandag 13 juni 2005 19:02 To: RPG programming on the AS400 / iSeries Subject: RE: Problem converting unicode UCS-2 to character Search the archives for iconv examples. One was just posted within the last week or two. Matt -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of kristof.anthonis@xxxxxx Sent: Monday, June 13, 2005 10:42 AM To: rpg400-l@xxxxxxxxxxxx Subject: Problem converting unicode UCS-2 to character Hello, I 'm having problems to find a way to convert a string containing unicode to normal characters. For examle I'm getting data '006E' and I want to translate this into character 'n'. I know if I declare the following; D X 1C inz(U'006E') X will contain 'n'. So the I-series is capable of doing so. But in this case '006E' is hard-coded. What about data wich I receive in stream??? How can I convert that? Thanks, Kristof
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.