Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-12

Utf8Tosys and SysToUtf8

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Kamen Ketev
Hello! My project was compiled without any problem with Lazarus 1.6.4, but Lazarus 1.8 can not find the declaration of Utf8ToSys and SysToUtf8. Would you say in which module are they in Lazarus 1.8?

LazUTF8

Mattias

Reply by email

Juha Manninen
to Mattias Gaertner
Mattias Gaertner wrote 6 lines
On Thu, 21 Dec 2017 13:18:07 +0200 (EET) Kamen Ketev via Lazarus wrote: > Hello! My project was compiled without any problem with Lazarus 1.6.4, but Lazarus 1.8 can not find the declaration of Utf8ToSys > and SysToUtf8. Would you say in which module are they in Lazarus 1.8? LazUTF8

Yes but they are not needed if you use the default Unicode support in Lazarus. See:
http://wiki.lazarus.freepascal.org/Unicode_Support_in_Lazarus#Coming_from_older_Lazarus_.2B_LCL_versions

Juha

Reply by email

Kamen Ketev
to Mattias Gaertner: On Thu, 21 Dec 2017 13:18:07 +0200 (EET) LazUTF8 Mattias

Thanks! Now it works.
Regards,
Kamen

Show quoted text 9 lines
-------- Оригинално писмо -------- От: Mattias Gaertner via Lazarus Относно: Re: [Lazarus] Utf8Tosys and SysToUtf8 До: Изпратено на: 21.12.2017 13:31

On Thu, 21 Dec 2017 13:18:07 +0200 (EET)

Kamen Ketev via Lazarus > wrote
Hello! My project was compiled without any problem with Lazarus 1.6.4, but Lazarus 1.8 can not find the declaration of Utf8ToSys and SysToUtf8. Would you say in which module are they in Lazarus 1.8?

LazUTF8

Mattias

Reply by email

Kamen Ketev
to Mattias Gaertner: On Thu, 21 Dec 2017 13:18:07 +0200 (EET) LazUTF8 Mattias

The program is being compiled and started, but my Cyrillic text in over 100 files in text DB comes out with ????? - ??????? How can I fix the problem? Regards,
Kamen

Show quoted text 9 lines
-------- Оригинално писмо -------- От: Mattias Gaertner via Lazarus Относно: Re: [Lazarus] Utf8Tosys and SysToUtf8 До: Изпратено на: 21.12.2017 13:31

On Thu, 21 Dec 2017 13:18:07 +0200 (EET)

Kamen Ketev via Lazarus > wrote
Hello! My project was compiled without any problem with Lazarus 1.6.4, but Lazarus 1.8 can not find the declaration of Utf8ToSys and SysToUtf8. Would you say in which module are they in Lazarus 1.8?

LazUTF8

Mattias

Reply by email

Kamen Ketev
to Juha Manninen: On Thu, Dec 21, 2017 at 1:31 PM, Mattias Gaertner via Lazarus Yes but they are not needed…

I also use Utf8Length. This is not in the list of features. Which function should I use instead? Regards,
Kamen

Show quoted text 9 lines
-------- Оригинално писмо -------- От: Juha Manninen via Lazarus Относно: Re: [Lazarus] Utf8Tosys and SysToUtf8 До: Lazarus mailing list Изпратено на: 21.12.2017 13:42

On Thu, Dec 21, 2017 at 1:31 PM, Mattias Gaertner via Lazarus

Show quoted text 13 lines
wrote: On Thu, 21 Dec 2017 13:18:07 +0200 (EET) Kamen Ketev via Lazarus > wrote: > Hello! My project was compiled without any problem with Lazarus 1.6.4, but Lazarus 1.8 can not find the declaration of Utf8ToSys > and SysToUtf8. Would you say in which module are they in Lazarus 1.8? LazUTF8

Yes but they are not needed if you use the default Unicode support in Lazarus.

See:

http://wiki.lazarus.freepascal.org/Unicode_Support_in_Lazarus#Coming_from_older_Lazarus_.2B_LCL_versions

Juha

Reply by email

R0b0t1
to Kamen Ketev: The program is being compiled and started, but my Cyrillic text in over 100 files in text…
Kamen Ketev wrote 6 lines
The program is being compiled and started, but my Cyrillic text in over 100 files in text DB comes out with ????? - ??????? How can I fix the problem? Regards, Kamen

Hello,

Can you provide code? I recently had to port a project forward like this and made many of the changes you are making. I noticed no problems.

Cheers,
R0b0t1

Reply by email

Mattias Gaertner
to R0b0t1
On Thu, Dec 21, 2017 at 7:33 AM, Kamen Ketev via Lazarus wrote: > The program is being compiled and started, but my Cyrillic text in over 100 > files in text DB comes out with ????? - ??????? How can I fix the problem?

Maybe your DB is encoded in Windows System Codepage and you used SysToUTF8 for that?

You can use WinCPToUTF8 and UTF8ToWinCP.

Mattias

Reply by email