Sign in Join

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

Mailing lists / lazarus / 2011-10

Mac OS X Carbon: Non-standard characters (umlaute) shown as question marks ?

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

fred f

Hi guys,

My project is encoded in UTF-8 and when I build up some text which contains non-standard ASCII characters like "????????" then e.g. TLabel shows the umlaute as question mark.
The strange is, that when I assign some text without concatenation as:

Label12.Caption := 'My umlaute text ????????';

it works, but then I need to build up a text based on some function + static text as:

Label12.Caption := 'My umlaute ' + GetTextFunction + 't ????????';

it doesn't work!

Of course my source code is encoded in UTF-8 and the used functions return "string" and the compiler option doesn't have checked the option "-Sh" - use ansi strings.

Second strange thing is, that it happens on Mac OS X Carbon. When using GTK2 no problem is shown from the same sources.

Thanks.

ff.

Reply by email

fred f
to fred f

I have forgotten to mention, that this started to happen with latest Lazarus/FPC svn versions.

fred f wrote 27 lines
Hi guys, My project is encoded in UTF-8 and when I build up some text which contains non-standard ASCII characters like "????????" then e.g. TLabel shows the umlaute as question mark. The strange is, that when I assign some text without concatenation as: Label12.Caption := 'My umlaute text ????????'; it works, but then I need to build up a text based on some function + static text as: Label12.Caption := 'My umlaute ' + GetTextFunction + 't ????????'; it doesn't work! Of course my source code is encoded in UTF-8 and the used functions return "string" and the compiler option doesn't have checked the option "-Sh" - use ansi strings. Second strange thing is, that it happens on Mac OS X Carbon. When using GTK2 no problem is shown from the same sources. Thanks. ff.

Reply by email

Felipe Monteiro de Carvalho
to fred f
fred f wrote
I have forgotten to mention, that this started to happen with latest Lazarus/FPC svn versions.

Are you aware of the huge changes in FPC svn?

For now, I would not use it with Lazarus. Use 2.4.4 or 2.6

Felipe Monteiro de Carvalho

Reply by email

Michael Schnell
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 7 lines
On Thu, Oct 13, 2011 at 8:48 AM, fred f wrote: > I have forgotten to mention, that this started to happen with latest > Lazarus/FPC svn versions. Are you aware of the huge changes in FPC svn? For now, I would not use it with Lazarus. Use 2.4.4 or 2.6

I happily use this version:

"Free Pascal Compiler version 2.7.1 [2011/08/26] for i386"

It might be a very late "no-new-string" version.

AFAIK, using svn, you can rewind your FPC sources to 2011/08/26 (I don't know the revision number).

-Michael

Reply by email

fred f
to Michael Schnell
Michael Schnell wrote 21 lines
On 10/13/2011 09:10 AM, Felipe Monteiro de Carvalho wrote: > > On Thu, Oct 13, 2011 at 8:48 AM, fred f ?wrote: >> >> I have forgotten to mention, that this started to happen with latest >> Lazarus/FPC svn versions. > > Are you aware of the huge changes in FPC svn? > > For now, I would not use it with Lazarus. Use 2.4.4 or 2.6 > I happily use this version: "Free Pascal Compiler version 2.7.1 [2011/08/26] for i386" It might be a very late "no-new-string" version. AFAIK, using svn, you can rewind your FPC sources to 2011/08/26 (I don't know the revision number).

Thanks, but revision 17889 I have been using before was not perfect on MacOSX as well, but better. I am just trying to compile it on 2.4.4 to see if it will be the best for me, but I have some syntax errors described in separate mail.

ff.

Reply by email