octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49222] octave-io 2.4.3: xls2oct with "OCT" i


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #49222] octave-io 2.4.3: xls2oct with "OCT" interface lost the ability to read german umlauts or °
Date: Sat, 1 Oct 2016 11:52:36 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

Follow-up Comment #2, bug #49222 (project octave):

Andreas,

Changing L.42 of tidyxml.m (in io package) from

    ostr = char (istr(find (istr > 31 & istr < 127)));

into
+vrbatim+
    ostr = char (istr(find (istr > 31 & istr < 255)));

I get with your spreadsheet:


>> [~, ~, rw] = xlsread ('bug_49222_AW_foobar2.xlsx', 1, '', 'oct')
Checking requested interface(s):
OCT*; (* = default interface)
rw =
{
  [1,1] = 90┬░
  [2,1] = äöü
  [3,1] =  1234
}
>> uint8 (rw {2, 1})
ans =

  195  164  195  182  195  188


which clearly shows the double-byte issue.

I played around on my box with various language settings for Windows and
Octave but I couldn't get the proper output.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49222>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]