DIUnicode 6.8.0 D4-XE10.2

DIUnicode 6.8.0 D4-XE10.2
DIUnicode 6.8.0 D4-XE10.2 | 3 Mb

DIUnicode provides Unicode Reader and Unicode Writer classes for Delphi (Embarcadero / CodeGear / Borland). The classes implement automatic and native decoding and / or encoding of 150+ character sets when linked against DIConverters. DIUnicode’s Pascal implementation features more than 70 encodings, like UTF-7, UTF-8, UTF-16, the ISO-8859 family, various Windows and Macintosh codepages, KOI8 character sets, Chinese GB18030, and more. Adding a new character coding is as simple as writing a single conversion procedure.


Key Benefits
DIUnicode is for you if your application needs to handle text with multiple character encodings with high performance and little development time. Both the Unicode Reader and the Unicode Writer work with strings, buffers, and streams. You can, for example, directly read from or write to database BLOB streams avoiding all temporary storage of your data. An efficient buffering system guarantees excellent performance, even when processing huge files.
Simple Usage Examples
DIUnicode makes reading and writing Unicode as simple as ASCII text, regardless of the character set or encoding you are processing. the code snippets below show some of the techniques usually applied with TDIUnicodeReader, the reader class of DIUnicode. Remember that you can use the parsing routine unchanged with any of the available encodings.
Read entire lines from a Unicode text file:

{ Setup and initialize. }
Reader := TDIUnicodeReader.Create(nil);
{ Let’s say we want to read UTF-8.
This could well be any other
character encoding. }
Reader.ReadMethods := Read_Utf_8;
Reader.SourceStream :=
TFileStream.Create(‘MyFile.txt’, fmOpenRead);
{ Now the actual reading: }
while Reader.ReadLine do
TheLine := Reader.DataAsStrW;
{ Your code to process the line
goes here. }

Read individual characters only:

while Reader.ReadChar do
TheChar := Reader.Char;
case TheChar of
; // Process Alphas
; // Process Digits

Use overloaded methods to read up to a particular character or a set of characters:

{ Read all characters up to the Dollar sign. }
{ Read all characters up to either ‘(‘ or ‘)’. }
Reader.ReadCharsTill(‘(‘, ‘)’);
{ Skip rest of line and advance to next one. }

DIUnicode 6.8.0 – 3 Apr 2017
Support Delphi 10.2 Tokyo Win32 and Win64.


character, DIUnicode, classes, Unicode, Macintosh, codepages, Windows, various, family, Chinese, encodings, Adding, single, conversion, procedure, writing, simple, features, coding, GB18030, Reader, DIUnicode, character, Unicode, characters, encodings, encoding, classes, Writer, Delphi, simple, writing, Adding, procedure, processing, begin, single, conversion, DOWNLOAD, TDIUnicodeReader



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s