3
votes
Vote UpVote

The broken FMX TOpenDialog

Delphi Haven – Both Core Foundation and Cocoa – Apple’s ‘high level’ APIs (the first for C, the second Objective-C) – use UTF-16 encoding for strings, just like Delphi. Alas, but the XE2 source code consistently ignores this fact, and uses UTF-8 roundtrips instead. I can guess why: on the one hand (and not unreasonably), the RTL uses OS X’s POSIX layer as much as possible, which uses UTF-8; and on the other, the syntax for getting a Delphi string from a Cocoa or Core Foundation string via UTF-8 is, funnily enough, syntactically simpler than the code for avoiding a ...
Favorite? Off-Topic? Chris Rolliston @ 2011-10-10 09:04

Statistics

Visits: 752
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

TOndrej
vcldeveloper
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)