Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
P.S.: Am even contemplating of using JNI (the Java native interface) which possesses UTF-8 encodings/decodings out of the box, which means that the dbus library would have to become a part of BSF4ooRexx. Should ooRexx ever get UTF-8/Unicode capabilities I could adjust the respective code

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Mike Cowlishaw
Hi, Rony, trying to see what you are really looking for. UTF8 - 8-bit in general cannot be done because UTF-8 is an encoding for 16-bit characters (and some escapes for 32-bit extension). However, for European characters the Latin-1 character set (http://en.wikipedia.org/wiki/ISO/IEC_8859-1)

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread CVBruce
Rony, It looks like Mac OS X comes with libiconv. I'm not sure this is exactly what you want. http://www.gnu.org/software/libiconv/ Yours, Bruce On Jul 5, 2011, at 1:43 AM, Rony G. Flatscher wrote: Hi Jean-Louis, 2011/7/4 Rony G. Flatscher rony.flatsc...@wu-wien.ac.at Hi there, in

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
Hi Mike, thank you very much for your information and code ! As in the meantime I was able to come up with a working solution with BSF4ooRexx, I will look into it again (using your code), once the library is done and do timings, as preferably I would not want to force the usage of BSF4ooRexx, if

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-05 Thread Rony G. Flatscher
Bruce, thank you very much for your research and hint, which is highly appreciated! Currently I found a solution taking advantage of BSF4ooRexx (i.e. Java) for doing the conversions, which has also the benefit that it is platform independent as BSF4ooRexx is now available for all major

[Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-04 Thread Rony G. Flatscher
Hi there, in the process of creating an external ooRexx function library, I have sometimes to transport strings as UTF-8, even if non-7-Bit-ASCII characters are part of it (for non-English characters). Ist there a simple/easy way in C++ how one could create UTF-8 strings from 8-Bit-Strings and

Re: [Oorexx-devel] How to portably convert between 8-bit and UTF-8 and vice versa

2011-07-04 Thread Jean-Louis Faucher
Hi Rony 2011/7/4 Rony G. Flatscher rony.flatsc...@wu-wien.ac.at Hi there, in the process of creating an external ooRexx function library, I have sometimes to transport strings as UTF-8, even if non-7-Bit-ASCII characters are part of it (for non-English characters). If you need only to