SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Unicode issue in string argument for image2rgb()
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,370 Was thanked: 829 time(s) in 525 post(s)
|
Hi. The error is self explained. This is the saved file: Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Thank you, I'll fix it ASAP. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Fixed and released for the latest beta |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,370 Was thanked: 829 time(s) in 525 post(s)
|
Originally Posted by: Davide Carpi Fixed and released for the latest beta Hi Davide. The issue persists for release "0.99.7786.571": test.sm (3kb) downloaded 7 time(s).Best regards. Alvaro.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
It works for me even if dots, slashes and underscores are encoded |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,370 Was thanked: 829 time(s) in 525 post(s)
|
Originally Posted by: Davide Carpi 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. test_unicode_2.sm (6kb) downloaded 7 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. Edited by user 26 April 2021 14:56:01(UTC)
| Reason: Not specified
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Originally Posted by: Razonar 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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 26/04/2021(UTC), on 26/04/2021(UTC)
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Alvaro, Originally Posted by: Razonar 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. Edited by user 26 April 2021 18:09:39(UTC)
| Reason: Not specified
|
1 user thanked Andrey Ivashov for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Unicode issue in string argument for image2rgb()
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.