Ok, I'll start up front by announcing my ignorance on these two items: UTF-8 and
Unicode.

After reading some discussions of implementing Unicode/UTF-8 support
in Lazarus I thought I would ask.  Could someone give the watered down
explanation to me (and probably others too)?  My mind is trying to
wrap around the two concepts as one issue, but I believe I'm just
getting myself more confused.

I read in Wikipedia about Unicode and UTF-8, but still it makes no sense.

Also as an example in Object Pascal, what is involved in changing a
function (or app) that uses standard ANSI strings to support UTF-8 or
Unicode or whatever it should be called.

When am I supposed to use String and WideString? Must I change all
references of String to WideString?  Is WideString = UTF-8 or Unicode
or UTF-16 or UCS-2 (whatever the hell that is)?   See my problem... I
am totally lost. :-)

Example:

function MyFooBar(const AStrValue: String); String
begin
 .... do whatever in here
 Result := <some string value>;
end;

....

var
 s, r: String;
begin
  s := "Graeme";
  r := MyFooBar(s);
  ...
end;


Many thanks in advance,
 - Graeme -

--
There's no place like 127.0.0.1

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to