Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Utf8 and CLOB
Sun, Feb 26 2017 1:10 PMPermanent Link

Charalampos Michael

Hello,
 When i save UTF8 in a CLOB field it does dispay garbage. (for non-english items, using Utf8Encode)
 Is there any way to store UTF8 (Utf8Encode) in a CLOB field ?

Thank you
Mon, Feb 27 2017 2:16 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Charalampos


Ansi or unicode table?

Roy Lambert
Mon, Feb 27 2017 6:10 AMPermanent Link

Charalampos Michael

> Ansi or unicode table?

Hello Roy,
 Unicode table
Mon, Feb 27 2017 9:28 AMPermanent Link

Raul

Team Elevate Team Elevate

On 2/26/2017 1:10 PM, Charalampos Michael wrote:
> Hello,
>   When i save UTF8 in a CLOB field it does dispay garbage. (for non-english items, using Utf8Encode)
>   Is there any way to store UTF8 (Utf8Encode) in a CLOB field ?

AFAIK EWB (and Delphi) are UTF16 for storage so you'd need to write your
own viewer (for anything not ansi). Main challenge though is actually
storing and reading data - using things like asstring in dataset and
other string operations cane easily result in utf16.

You could use blob and be very careful when reading/writing data to
ensure it does not get converted again by dataset or other libraries.

Raul
Tue, Feb 28 2017 3:25 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< When i save UTF8 in a CLOB field it does dispay garbage. (for non-english items, using Utf8Encode) Is there any way to store UTF8 (Utf8Encode) in a CLOB field ? >>

Is there any particular reason that you wish to store it as UTF-8 and not just leave it as UTF-16 ?  Normally you would use an *ANSI* database for storing/retrieving data as UTF-8 in order to realize the savings in terms of actual byte usage.

Tim Young
Elevate Software
www.elevatesoft.com
Image