octave-maintainers
[Top][All Lists]
Advanced

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

Re: Handle encoding of Octave strings


From: mmuetzel
Subject: Re: Handle encoding of Octave strings
Date: Thu, 17 May 2018 04:05:34 -0700 (MST)

nrjank wrote:
> Matlab 2017b does not have an islower or isupper implementation.

The closest thing to islower in Matlab is probably:
>> a = 'ä';
>> lower(a)==a & upper(a)~=a
ans =
     1

> on windows it seems I'm unable to copy paste a ä, which seems to be
> char(228), or 'Ä' which is char(196). Octave gives me:

This is bug #47571:
https://savannah.gnu.org/bugs/index.php?47571

> >> islower(char(228))
> ans = 0

Octave expects UTF-8 encoded characters. So "ä" is char([195 164]). At least
atm (see my previous mail).

> >> upper(char(228))
> ans =

Support for UTF-8 encoded strings by "upper" and "lower" is covered in bug
#53873:
https://savannah.gnu.org/bugs/index.php?53873

Markus




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html



reply via email to

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