[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 in
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input |
Date: |
Sat, 8 Apr 2023 11:52:37 -0400 (EDT) |
Follow-up Comment #28, bug #57107 (project octave):
When you end up with non-UTF-8 encoded characters in an Octave char array,
something else has probably gone wrong.
Dependent on where those char arrays came from, you might need to change the
`__mfile_encoding__` to match the encoding of your .m files, save your .m
files in UTF-8 encoding, convert the encoding of the string from the native
encoding to UTF-8 with `native2unicode`, or - if you are dealing with byte
arrays - use `uint8` arrays instead, ...
In the latter case, you probably shouldn't use `regexp`/`regexprep` on byte
arrays anyway.
It's hard to tell what might help without knowing more about the use case.
Could you please show a self-contained minimal reproducer of the error you are
seeing?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57107>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Qianqian Fang, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input,
Markus Mützel <=
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Markus Mützel, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Qianqian Fang, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Markus Mützel, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Markus Mützel, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Qianqian Fang, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Qianqian Fang, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Qianqian Fang, 2023/04/08
- [Octave-bug-tracker] [bug #57107] regexp functions fail on ISO-8859-1 input, Markus Mützel, 2023/04/10