Unicode issue in string argument for image2rgb()

Unicode issue in string argument for image2rgb() - Poruke

#1 Objavljeno: 22. 4. 2021. 00:44:39
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi. The error is self explained.

Clipboard02.jpg

This is the saved file:

Clipboard03.jpg

Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
Davide Carpi 22. 4. 2021. 08:36:00
#2 Objavljeno: 22. 4. 2021. 08:36:07
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 Objavljeno: 25. 4. 2021. 19:48:26
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Alvaro 25. 4. 2021. 20:09:00
#4 Objavljeno: 25. 4. 2021. 20:21:10
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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) preuzeto 1511 put(ova).

Clipboard01.jpg

Best regards.
Alvaro.
#5 Objavljeno: 26. 4. 2021. 04:38:06
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 Objavljeno: 26. 4. 2021. 08:53:32
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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) preuzeto 1572 put(ova).

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 korisnika je svidelo ovu objavu
sergio 26. 4. 2021. 14:05:00
#7 Objavljeno: 26. 4. 2021. 10:31:56
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Alvaro 26. 4. 2021. 10:57:00, sergio 26. 4. 2021. 14:05:00
#8 Objavljeno: 26. 4. 2021. 11:38:33
Andrey Ivashov

Andrey Ivashov

2.345 svidjanja u 4.060 postova.

Grupa: 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 korisnika je svidelo ovu objavu
Alvaro 26. 4. 2021. 23:45:00
  • Novi postovi
  • Nema novih postova