Unicode issue in string argument for image2rgb()

Unicode issue in string argument for image2rgb() - Messages

#1 Posted: 4/22/2021 12:44:39 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. The error is self explained.

Clipboard02.jpg

This is the saved file:

Clipboard03.jpg

Best regards.
Alvaro.
1 users liked this post
Davide Carpi 4/22/2021 8:36:00 AM
#2 Posted: 4/22/2021 8:36:07 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Thank you, I'll fix it ASAP.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 4/25/2021 7:48:26 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Fixed and released for the latest beta
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Alvaro Diaz Falconi 4/25/2021 8:09:00 PM
#4 Posted: 4/25/2021 8:21:10 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Fixed and released for the latest beta



Hi Davide. The issue persists for release "0.99.7786.571":

test.sm (2 KiB) downloaded 26 time(s).

Clipboard01.jpg

Best regards.
Alvaro.
#5 Posted: 4/26/2021 4:38:06 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

It works for me even if dots, slashes and underscores are encoded

2021-04-26 09_35_51-SMath Studio - [test.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Posted: 4/26/2021 8:53:32 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

It works for me even if dots, slashes and underscores are encoded



Hi Davide. Yes. you're right, it works with encoded strings now, I see the strings, and no check if can read files with that.

So, standard ASCII characters lower than 128 will be encoded as Unicode? That can introduce a lot of issues for low level manipulation to the user.

Clipboard01.jpg

test_unicode_2.sm (5 KiB) downloaded 23 time(s).

Also, the string "a_b" doesn't appear in the search box, but if you search for x, x and "x" appear.

Also, suppose that I want to find an sm file where it's defined the function "my_function_1": I need to search now the string "my\005F\function\005F\1" inside the files?

Best regards.
Alvaro.
1 users liked this post
sergio 4/26/2021 2:05:00 PM
#7 Posted: 4/26/2021 10:31:56 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

So, standard ASCII characters lower than 128 will be encoded as Unicode? That can introduce a lot of issues for low level manipulation to the user.



As Andrey has stated there's an enforcement on the encoding, I don't know how much can be relaxed (as positive thing now you should be able to use 4-digits folders in paths); however as you pointed out in some fields the program misses the proper implementation to deal with them (more visible because the enforced rule, but would have been buggy even with less strict approach, and it was buggy since the encoding was already in place). Ideally it should works flawlessy whatever under the hood all character are encoded or not.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
2 users liked this post
Alvaro Diaz Falconi 4/26/2021 10:57:00 AM, sergio 4/26/2021 2:05:00 PM
#8 Posted: 4/26/2021 11:38:33 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Alvaro,

Wrote

Also, the string "a_b" doesn't appear in the search box, but if you search for x, x and "x" appear.

Also, suppose that I want to find an sm file where it's defined the function "my_function_1": I need to search now the string "my\005F\function\005F\1" inside the files?


Thank you! Fixed.
1 users liked this post
Alvaro Diaz Falconi 4/26/2021 11:45:00 PM
  • New Posts New Posts
  • No New Posts No New Posts