Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 26509, UCS4Encoding Version 1.00

by Yusuke Konno Email: Anonymous


UCS4Encoding provides TEncoding class for UTF-32LE / BE.
You can easily read or write text file which encoding is UTF-32.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 12.0  to 12.0 134 downloads
Copyright: Open Source or other


Size: 3,772 bytes
Updated on Fri, 26 Dec 2008 08:31:34 GMT
Originally uploaded on Fri, 26 Dec 2008 08:31:17 GMT
SHA1 Hash: E2D3BEF69D840765894756FE0DA8FA02C7E875DF
MD5 Hash: 795454CCBC15460F53F41A6569A49176

    Explore the files in this upload

Description
Basically, how to use TUCS4Encoding is the same as TEncoding.

var
enc: TEncoding;
begin
enc := TUCS4Encoding.Create;//Little Endian with BOM
try
Memo1.Lines.LoadFromFile('test.txt',enc);
finally
enc.Free;
end;
end;

--Constructor
TUCS4Encoding has overloaded constructors as UTF32Encoding class on .NET Framework.

* constructor Create; overload; virtual;
* constructor Create(BigEndian: Boolean); overload; virtual;
* constructor Create(BigEndian, BOMEnable: Boolean); overload; virtual;

If BigEndian is True, TUCS4Encoding will act as UTF-32BE.
If BOMEnable is False, TUCS4Encoding.GetPreamble will return no value.

Default behavior is BigEndian is False and BOMEnable is True.
(TUCS4Encoding will act as LittleEndian with BOM)

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04