[yunqa.de] Reading UTF-8

  • From: "Simon Beesley" <simonbeesley@xxxxxxxxxxx>
  • To: <yunqa@xxxxxxxxxxxxx>
  • Date: Wed, 14 May 2008 14:56:06 +0100

Hi,

How do I get UTF-8 data as UTF-8?

Previously (with Zeos and a SQLite3 database):

   Ansistringvariable := Fields[1].AsString;

returned a UTF-8 string.

With DISQLite3 and the same SQLite3 database:

 Ansistringvariable :=  FStatement.Column_Str(1);

returns an Ansi string with the UTF-8 encoded foreign characters stripped out or converted (e.g. the Turkish character 's' with a cedilla now becomes plain 's').

Simon

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: