|
|
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
makhaon повторю для всех. В винде дефолтно - анси, в линуксе дефолтно utf8. Глупость, повторенная дважды не перестаёт быть глупостью: FPC since version 3.0 provides an API to change the default system codepage of RTL to something else. Lazarus (actually its LazUtils package) takes advantage of that API and changes it to UTF-8 (CP_UTF8). It means also Windows users now use UTF-8 strings in the RTL. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.03.2021, 23:00 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
Kazantsev Alexey, И вот что им мешало сделать по дефолту UTF-16? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.03.2021, 23:20 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
rgreat, Делают же. Нынешняя поддержка utf-8 это временное решение. Future The goal of FPC project is to create a Delphi compatible UnicodeString (UTF-16) based solution, but it is not ready yet. It may take some time to be ready. This UTF-8 solution of LCL in its current form can be considered temporary. In the future, when FPC supports UnicodeString fully in RTL and FCL, Lazarus project will provide a solution for LCL that uses it. At the same time the goal is to preserve UTF-8 support although it may require changes to string types or something. Nobody know the details yet. We will tell when we know... In essence LCL will probably have 2 versions, one for UTF-8 and one for UTF-16. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.03.2021, 23:39 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
Kazantsev Alexey makhaon, Я то думал он о чём-то серьёзном, а он о том, что ему заголовков не подвезли... Ну так обновись, что ли... Вот так оно уже сейчас: Код: pascal 1. 2. 3. 4. 5. 6. 7. 8. 9. что поменялось то? те же 'A' дефолтно. глупость повторенная трижды... дальше по тексту. обновляйся, не обновляйся, пока нормальную поддержку utf16 не завезут, будет как было. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.03.2021, 23:59 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
https://wiki.freepascal.org/Unicode_Support_in_Lazarus авторThe goal of FPC project is to create a Delphi compatible UnicodeString (UTF-16) based solution, but it is not ready yet. It may take some time to be ready. авторWhy not use UTF8String in Lazarus? Short answer: Because the FCL does not use it. И т.д. Текущее состояние строк в лазаре близко к вселенскому ужасу. завезут везде utf16 и всё устаканится. почти сразу же. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.03.2021, 00:07 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
makhaon, переключаешься на unicodestring и пользуешься апи с W. Но это, конечно, осилят не только лишь все. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.03.2021, 00:07 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
makhaon, Вижу, ты ещё и не читатель... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.03.2021, 00:09 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
Kazantsev Alexey, Леша, просто признайся, что пишешь херню и не прав. Ну чо уже, бывает. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.03.2021, 00:09 |
|
||
|
Delphi 7 и Unicode
|
|||
|---|---|---|---|
|
#18+
makhaon, Нет, херню про анси пишет не Лёша, а кто-то другой. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.03.2021, 00:17 |
|
||
|
|

start [/forum/topic.php?fid=58&msg=40051365&tid=2037537]: |
0ms |
get settings: |
10ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
180ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
| others: | 224ms |
| total: | 499ms |

| 0 / 0 |
