String compare problem with different encoding schemes

String compare problem with different encoding schemes - Сообщения

#1 Опубликовано: 22.04.2022 18:07:52
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

In SMath Solver 7921, it seems that some characters typed into string constants are coded even if they are in the basic ascii set.
In SMath Studio 7822 (latest installed version on my computer) this problem does not appear.

Here is an example which drives the user mad if he doesn't suspect about string encoding.

Even inspecting of the xml source in notepad++ doesn't reveal the difference, obviously the encoding is hidden from the user.
Only pasting from clipboard to notepad++ did help.
In the maxima translation process, a difference is seen on maxima side, yet it is hidden when back-translated.

IMHO string comparison or identity check in general should account for such encoding issues.

findrows.sm (11 КиБ) скачан 73 раз(а).
findrows.png

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Опубликовано: 24.04.2022 20:00:32
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

Can this be a Microsoft character encoding issue?
I am also on v7921 and opened your file directly.
There is no issue on linux mono.

Regards

2022-04-25_01-54.png
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений