Page 1 of 1

"invalid byte sequence" error on mac M1

Posted: Sun Nov 20, 2022 12:19 am
by thatman
Hi !
I have installed AEScrypt on my macbook air M1 (macOS Ventura), it is working good, only for one thing : if the password I enter contains a character like "é" it will send me this error "invalid byte sequence". I think this has to do with the encoding language ? How can I fix this ? :roll:

Re: "invalid byte sequence" error on mac M1

Posted: Sun Nov 20, 2022 4:05 am
by paulej
Quite possibly the character conversion logic is broken. Characters must be converted from the input language into UTF-16LE. I'm not sure if the issue is related to Apple Script or the aescrypt binary itself.

You could test that by running the aescrypt command from the command line, if you know how.

Re: "invalid byte sequence" error on mac M1

Posted: Sun Nov 20, 2022 1:02 pm
by thatman
Well I thought I knew how to do this, but after trying, I can say that its not the case :lol: :lol:

Re: "invalid byte sequence" error on mac M1

Posted: Mon Nov 21, 2022 4:05 am
by paulej
It's hard to explain if you don't know how. But, it works exactly the same way as on Linux.

I'll try to have a look at this myself, but I'm a bit busy at the moment. For now, I'd suggest just using only ASCII characters.

Re: "invalid byte sequence" error on mac M1

Posted: Mon Nov 21, 2022 3:43 pm
by thatman
Okay, thank you for the answer! I'll try some things