Forum > Beginners
Codepages, encodings, Unicode etc.
vick:
--- Quote ---My advice to you is start at least the design create something concrete that people can poke holes in it and post it here you will get a lot more accurate help that way.
In any way I would like to hear from you what you choose to use for your project and why when your evaluation is over.
--- End quote ---
That sounds very reasonable, I'll do that. Thank you for your time.
mse:
--- Quote from: vick on August 26, 2014, 07:01:35 pm ---I started to learn Pascal because I wanted to create cross-platform GUI applications (where 'cross-platform' means Linux and Windows - I don't care about OS X).
--- End quote ---
MSEide+MSEgui is a GUI framework for Free Pascal completely made with the 16 bit "UnicodeString". It also has own UnicodeString file and system access functions and components. The MSEgui database framework is based on UnicodeString too. Maybe it suits your needs.
http://sourceforge.net/projects/mseide-msegui/
Lazarus and fpGUI use utf-8 in 8 bit "AnsiString" everywhere and provide utf-8 versions of the FPC system and utility functions.
engkin:
--- Quote from: mse on August 27, 2014, 07:16:48 am ---... made with the 16 bit "UnicodeString".
--- End quote ---
That's bad and wasteful.
The 5 characters word "Hello" gets translated into 10 bytes
48 00 65 00 6C 00 6C 00 6F 00
That's why we have UTF8 where:
The 5 characters word "Hello" gets translated into 5 bytes
48 65 6C 6C 6F.
marcov:
--- Quote from: engkin on August 27, 2014, 01:36:54 pm ---That's why we have UTF8 where:
--- End quote ---
The trouble is that utf8 on Windows is only an encoding used in documents, it is not really used in Windows (-API) itself.
Same goes for QT, .NET Java and COCOA which also are default 2-byte.
For economics of encodings see http://www.stack.nl/~marcov/unicode.pdf paragraph 0.1.3
Navigation
[0] Message Index
[*] Previous page