Posts: 64
Threads: 9
Joined: Jun 2019
Reputation:
0
Location: here
Some languages allow unicode characters for variable names. PHP does that and so does Delphi. Unfortunately AJAX does not recognise unicode characters in variable names so it is necessary to change all intraweb component names so that they contain only ASCI characters. Problem shows only with onAsyncClick, not with onClick.
Posts: 2,250
Threads: 193
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
12-28-2019, 03:51 PM
(This post was last modified: 12-28-2019, 03:53 PM by Alexandre Machado.)
This is as designed, or better, this won't be implemented. You are probably the only developer I've ever known that wants to use accented and some weird chars in variable names.
Posts: 64
Threads: 9
Joined: Jun 2019
Reputation:
0
Location: here
Not accented. National characters like Russian or Chinese.
Posts: 2,250
Threads: 193
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
12-31-2019, 05:27 AM
(This post was last modified: 12-31-2019, 09:13 AM by Alexandre Machado.)
Why do you need to have control names using those chars? Do you know any Delphi library/framework (not only Delphi actually, but written in *any* language) which uses Chinese or Cyrillic in their code?
Posts: 64
Threads: 9
Joined: Jun 2019
Reputation:
0
Location: here
Yes I do know. All code that is not sold abroad has local national characters. It is te same that PHP allows. In books for students of computer science I read variable names using national characters. It is easier to understand the code and to learn that way. If we used only ASCI code, that would mean only English words for variable names. Thinking that way we should discontinue all spoken languages, articles in the languages and leave only one language in the world.
Russian, Greek, Chinese is particularly often used as variable names as they have totally different characters.