|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #54170] java.lang.String.toCharArray result incorrect conversion to char matrix |
Date: | Sun, 24 Jun 2018 13:01:33 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Follow-up Comment #4, bug #54170 (project octave): The easiest and most useful way to convert a Java string to an Octave char array is with the 'char' function. >> str = javaObject ('java.lang.String', '12345678901234567890'); >> char (str) ans = 12345678901234567890 But yes, there is undoubtedly a problem with the automatic conversion from a two-byte Java char array type into an Octave one-byte char array type. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54170> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |