Unicode issue in string argument for image2rgb()

Unicode issue in string argument for image2rgb() - Messaggi

#1 Pubblicato: 22/04/2021 00:44:39
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Hi. The error is self explained.

Clipboard02.jpg

This is the saved file:

Clipboard03.jpg

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
Davide Carpi 22/04/2021 08:36:00
#2 Pubblicato: 22/04/2021 08:36:07
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 25/04/2021 19:48:26
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 25/04/2021 20:09:00
#4 Pubblicato: 25/04/2021 20:21:10
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

Fixed and released for the latest beta



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

test.sm (2,38 KiB) scaricato 1476 volta(e).

Clipboard01.jpg

Best regards.
Alvaro.
#5 Pubblicato: 26/04/2021 04:38:06
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 26/04/2021 08:53:32
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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,82 KiB) scaricato 1532 volta(e).

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 utenti hanno apprezzato questo post
sergio 26/04/2021 14:05:00
#7 Pubblicato: 26/04/2021 10:31:56
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 26/04/2021 10:57:00, sergio 26/04/2021 14:05:00
#8 Pubblicato: 26/04/2021 11:38:33
Andrey Ivashov

Andrey Ivashov

2.343 apprezzamenti in 4.056 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 26/04/2021 23:45:00
  • Nuovi post
  • Nessun nuovo post