Unicode issue in string argument for image2rgb()

Unicode issue in string argument for image2rgb() - 消息

#1 已发布: 2021/4/22 00:44:39
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. The error is self explained.

Clipboard02.jpg

This is the saved file:

Clipboard03.jpg

Best regards.
Alvaro.
1位用户喜欢此帖子
Davide Carpi 2021/4/22 08:36:00
#2 已发布: 2021/4/22 08:36:07
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2021/4/25 19:48:26
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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位用户喜欢此帖子
Alvaro 2021/4/25 20:09:00
#4 已发布: 2021/4/25 20:21:10
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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)已下载 1488 次。

Clipboard01.jpg

Best regards.
Alvaro.
#5 已发布: 2021/4/26 04:38:06
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2021/4/26 08:53:32
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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)已下载 1544 次。

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位用户喜欢此帖子
sergio 2021/4/26 14:05:00
#7 已发布: 2021/4/26 10:31:56
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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位用户喜欢此帖子
Alvaro 2021/4/26 10:57:00, sergio 2021/4/26 14:05:00
#8 已发布: 2021/4/26 11:38:33
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: 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位用户喜欢此帖子
Alvaro 2021/4/26 23:45:00
  • 有新帖
  • 无新帖